# How to speed up contact search

**URL:** <https://forum.mautic.org/t/how-to-speed-up-contact-search/20842>\
**Category:** Product Support\
**Created:** [September 13, 2021, 9:32am UTC](https://forum.mautic.org/t/how-to-speed-up-contact-search/20842 "2021-09-13T09:32:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [September 13, 2021, 9:32am UTC](https://forum.mautic.org/t/how-to-speed-up-contact-search/20842/1 "2021-09-13T09:32:45Z")

</div>

**Your software**  
My Mautic version is: 3.3.4  
My PHP version is: 7.3  
My Database type and version is: Maria DB 10.3.30

**Your problem**  
My problem is:

Contact search on Contacts page is slow, I am looking into how to speed it up. Database has around 100k - 150k contacts.

These errors are showing in the log:

[no error logs, so far]

Steps I have tried to fix the problem:

I am thinking about isolating database server from application server and give database server more ram & cpu power.

Is there anyone that has faced the same issue? How did you approach/solve it? Please share your findings here. Thanks.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 13, 2021, 12:44pm UTC](https://forum.mautic.org/t/how-to-speed-up-contact-search/20842/2 "2021-09-13T12:44:00Z")

</div>

There are multiple videos on the web regarding db speed.  
Check this approach:

> **[Which is the Best Way to Run Mautic for Agencies? | Mauteam.org](https://mauteam.org/mautic/mautic-for-the-c-suite/which-is-the-best-way-to-run-mautic-for-agencies/)**
>
> Every so often I get requests to deploy multi-tenant Mautic setups, those requests are usually from a Marketing agency that needs to run multiple Mautic instances for their customers or their internal…

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [September 14, 2021, 10:26am UTC](https://forum.mautic.org/t/how-to-speed-up-contact-search/20842/3 "2021-09-14T10:26:40Z")

</div>

@joeyk, thank you for your reply. Like you suggested I found some resources and will try a couple of things.

These resources are:

> [@Performance problems with Mautic, 30+ second load time](https://forum.mautic.org/t/performance-problems-with-mautic-30-second-load-time/11783):
>

[https://joeykeller.com/knowledge-base-2/mautic-admin-guides/mautic-is-loading-slow-or-get-a-500-error/](https://joeykeller.com/knowledge-base-2/mautic-admin-guides/mautic-is-loading-slow-or-get-a-500-error/)

[https://mtcextendee.com/2019/12/25/mautic-are-very-slow-15m-contacts/](https://mtcextendee.com/2019/12/25/mautic-are-very-slow-15m-contacts/)

> **[PHP Session Locking: How To Prevent Sessions Blocking in PHP requests](https://ma.ttias.be/php-session-locking-prevent-sessions-blocking-in-requests/)**
>
> What I’ve found when talking about PHP session locking is that half my conversations revolve around “oh I remember PHP session blocking, it cost me a couple of days of my life but seriously improved my applications’ performance once I avoided them”...

However I fail to see how installing stuff in a container would help (like it suggested in the post you mentioned). I will try some of the things I posted above first and hopefully get the results I am looking for.

Have a nice day.
