# Slow Database Queries in WP Admin

**URL:** <https://community.gravityforms.com/t/slow-database-queries-in-wp-admin/15850>\
**Category:** Get Help\
**Tags:** mysql, performance, get\_entry\_meta\_counts, get\_entry\_count\_all\_forms, conflict\
**Created:** [September 9, 2023, 12:23am UTC](https://community.gravityforms.com/t/slow-database-queries-in-wp-admin/15850 "2023-09-09T00:23:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nterry](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/nterry/32/735_2.png) [@nterry](https://community.gravityforms.com/u/nterry)\
**Post date:** [September 9, 2023, 12:23am UTC](https://community.gravityforms.com/t/slow-database-queries-in-wp-admin/15850/1 "2023-09-09T00:23:54Z")

</div>

On every page load in the WordPress admin, there are a few Gravity Forms database queries that are very slow on my website.

The Query Monitor plugin shows me that the queries are:

`GFFormsModel::get_entry_meta_counts()`  
`GFFormsModel::get_entry_count_all_forms()`

Is there any way to optimize the MySQL database so that these queries don’t take so long? Or any way to make it so they don’t load on every page load inside the admin?

I’ve read information about optimizing the MySQL database tables by adding indexes or keys. Has anyone done this for Gravity Forms specifically?

Any help would be appreciated.

Cheers!

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [September 9, 2023, 9:45am UTC](https://community.gravityforms.com/t/slow-database-queries-in-wp-admin/15850/2 "2023-09-09T09:45:13Z")

</div>

I’m unable to replicate this issue on my test site. Out of the box, Gravity Forms does not call those methods on every admin page load.

Have you attempted running a complete conflict test using the steps outlined on this documentation page: [Testing for a Theme/Plugin Conflict](https://docs.gravityforms.com/testing-theme-plugin-conflict/)?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [October 9, 2023, 9:45am UTC](https://community.gravityforms.com/t/slow-database-queries-in-wp-admin/15850/3 "2023-10-09T09:45:42Z")

</div>

Closed on October 9, 2023, 9:45am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
