Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 12, 20222 yr Seems my database size has increased significantly and not aligning with traffic increases. Any suggestions on where to review to troubleshoot?
November 12, 20222 yr You would need to look at the database to determine which tables these are. If it is your log tables, you will need to review the logs to see what is happening and correct the issue.
November 12, 20222 yr Author On 11/12/2022 at 2:58 PM, Jim M said: You would need to look at the database to determine which tables these are. If it is your log tables, you will need to review the logs to see what is happening and correct the issue. It appears core_search_index is the culprit. What would cause it to be more than half of the DB size?
November 12, 20222 yr Author Addendum, core_search_index is around 5GB+, which isn't particularly large but it does account for more than half of the DB storage and seems to be growing at an incredibly fast pace while activity grows at a much slower pace. This was particularly noticeable from the last few upgrades where the size of this table has nearly doubled to tripled in the last 9 months to a year. The next largest tables are: forum_posts at 741MB core_reputation index at 448MB core_follow at 99MB
November 12, 20222 yr Is the search index the actually size or the overhead size? If the latter, your hosting provider would need to evaluate your MySQL server configuration as it is not performing “garbage collection” effectively.
November 12, 20222 yr Author On 11/12/2022 at 8:41 PM, Jim M said: Is the search index the actually size or the overhead size? If the latter, your hosting provider would need to evaluate your MySQL server configuration as it is not performing “garbage collection” effectively. Overhead for all tables just shows a "-"
November 13, 20222 yr The index seems way too big compared to the data in the table. Maybe you have some extra/duplicate/useless indexes you can remove?
November 13, 20222 yr May wish to clear the index and have the system rebuild it. Seems quite odd to be that large. (please take backups prior to doing any of that)
November 14, 20222 yr Glad to see that reduced the size. Please also check in Support (top right of your admin CP) and ensure you address anything under the mysql section. We do tend to see less issues like this (although it is indeed a hosting issue) when people are using INNODB that is recommended. I'm wondering if you may not be in your case
November 15, 20222 yr Author On 11/14/2022 at 9:57 AM, Marc Stridgen said: Glad to see that reduced the size. Please also check in Support (top right of your admin CP) and ensure you address anything under the mysql section. We do tend to see less issues like this (although it is indeed a hosting issue) when people are using INNODB that is recommended. I'm wondering if you may not be in your case Support checks were all clean. And MariaDB was setup to use INNODB for the InvisionCommunity tables. Wonder if it's our heavy usage of Activity Streams that contributes to that particular table sizing if they are related?
November 16, 20222 yr Of course, if you have more streams it would take up more space. However, it would not take up that kind of space, and given it reduced when you optimised, that would indeed be garbage collection on your mysql instance that isn't happening properly.
September 11, 20231 yr On 11/13/2022 at 3:42 PM, Jim M said: May wish to clear the index and have the system rebuild it. Seems quite odd to be that large. (please take backups prior to doing any of that) Hi @Jim M I am having some slowness problems and my core_search_index table is of a large size. When you refer to "clean", is it truncating the table?
September 11, 20231 yr When you say "Large", what kind of size are we referring to here? If you rebuild the search index, its done from the admin CP, and will indeed wipe that table and rebuild. However if it's the correct size, it will rebuild back to that same size
September 12, 20231 yr On 9/12/2023 at 10:47 PM, Mercury Forever said: Hello @Marc Stridgen, that board on my base weighs 4.7GB. As Marc mentioned, it’s not so much size but rather is it the correct size? Did you rebuild the search index and did it rebuild to the same size?