Title: Slow queries
Last modified: August 31, 2016

---

# Slow queries

 *  Resolved [yk11](https://wordpress.org/support/users/yk11/)
 * (@yk11)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/slow-queries-3/)
 * I installed query-monitor db queries debugging plugin to resolve a plugin issue
   unrelated to Wordfence.
 * The tool highlighted a slow query by Wordfence: SHOW FULL COLUMNS
    FROM `wp_wfLockedOut`.
   The results are 5 rows returned in 0.1872 seconds.
 * This only happens when the page is not cached.
 * Is this expected?
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * (@wfmattr)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/slow-queries-3/#post-6918598)
 * Thanks for the report. I don’t think this used to happen, and I have submitted
   a bug report to our dev team, with reference number FB1293.
 * It looks like the queries are caused by wp-db.php, and are probably due to the
   format of the content in these fields, causing extra checking that should not
   be necessary.
 * -Matt R
 *  [Ian Pegg](https://wordpress.org/support/users/ianpegg/)
 * (@ianpegg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/slow-queries-3/#post-6918671)
 * Hello [@wfmattr](https://wordpress.org/support/users/wfmattr/),
 * I’m having exactly the same problem as [@yk11](https://wordpress.org/support/users/yk11/)—
   the exact same slow query on the wfLockedOut table that returns 5 results after
   0.2092 seconds.
 * I tried searching for the bug report ref. FB1293 but couldn’t find it anywhere.
   Has this issue been resolved?
 * Thanks
 *  [Webartisan](https://wordpress.org/support/users/webartisan/)
 * (@webartisan)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/slow-queries-3/#post-6918672)
 * Hello everybody following this thread.
    I have the same problem. Just wanted 
   to add some details about the function that is supposed to generate the query:
 *     ```
       wfDB->querySingle()
        wp-content/plugins/wordfence/lib/wfDB.php:10
       ```
   
 * as stated by Query Monitor.
    In my case the query time spans from 0.1800 and 
   0.2500 secs.
 * Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Slow queries’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Webartisan](https://wordpress.org/support/users/webartisan/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/slow-queries-3/#post-6918672)
 * Status: resolved