I added 1.5 million accounts via the database across all related tables:
accounts
accounts_cstm
email_addresses
email_addr_bean_rel
contacts
contacts_cstm
accounts_contacts
After the insertion, the SuiteCRM interface just keeps loading even after repairing. Apparently, it seems that it wants to display all the data, despite having pagination. If I use a filter, it displays normally, but the issue arises the first time I open the suite. This occurs in the accounts module, contacts, and on the home page.
example of slowness:
However, Iām still experiencing instability. Sometimes it instantly loads the 500 accounts, and sometimes it takes an eternity to process. Do you know if I should modify any of these configurations?
What is the hardware on your server? Thatās a very big database.
You should also turn on ālog slow queriesā and see exactly which queries are breaking the server. Then you can run them directly in SQL with EXPLAIN to see if you can optimize indexes.
Iām still testing the indexes and trying to fix the error, but Iām facing the following situation. This query from the accounts insight is in the serverās slow log. Up to 10 accounts inserted into the database, the index works; however, from 10 onwards, it simply stops working. Iām attaching screenshots of both cases; I couldnāt identify why it stops using the index.
Working index:
I believe I may have resolved it; Iāll leave all the configurations I applied. The last changes I made were to increase the innodb and the query_cache_type. Itās loading practically instantly and isnāt becoming heavy on the browser. Thank you very much for the help, @rsp and @pgr.