-
AuthorPosts
-
October 19, 2021 at 9:36 pm #1325602
Hello
querying
SELECT * FROMwp_postmeta
WHEREmeta_key
LIKE ‘%avia%’
returns 12929 records, that I suppose are all related to Enfold. All the table is 72987 records
Our site contains
272 posts
513 pages
3.415 media elements
It seems that there is something wrong.
There is a way to clean up, something can be deleted?
Thank you
MauroOctober 20, 2021 at 6:19 am #1325668Hey profumopuntoit,
Thank you for the inquiry.
That seems to be normal. Please note that the each post or page that is built using the ALB can have at least 3 meta info attached to it. These includes the _avia_builder_shortcode_tree, _aviaLayoutBuilder_active, _avia_sc_parser_state and _aviaLayoutBuilderCleanData, so with that number of posts/pages, the database could easily contain thousands of meta entries. The theme also creates meta entries for menu items.
Do you have a staging or development version of the site? Please post the site details in the private field so that we can check it.
Best regards,
IsmaelOctober 20, 2021 at 10:44 pm #1325778Hello Ismael,
I have used WPS Cleaner plugin that did an excellent job and now my wp_postmeta table has “only” 36,576 records
and the query
SELECT * FROMwp_postmeta
WHEREmeta_key
LIKE ‘%avia%’
returns 4371 records
But still it is a lot because we have maximum ten pages built with ALB
Furthermore, the query
SELECT * FROMwp_postmeta
WHEREmeta_key
LIKE ‘%avia%’ ANDmeta_value
=”;
returns 2449 records. Can they be deleted?
Access is in private content
Thank you
MauroOctober 21, 2021 at 8:07 am #1325815Hey!
Thank you for the update.
SELECT * FROM wp_postmeta WHERE meta_key LIKE ‘%avia%’
returns 4371 recordsAs we have said previously, there are at least 3 or 4 meta entries attached to each post or page and since you have a total of 700++ posts or more, you have to expect that there will be more than 3000++ meta entries just for these items alone. Not to mention the meta entries for menu items and other options. Are you having issue with the site speed or database queries?
SELECT * FROM wp_postmeta WHERE meta_key LIKE ‘%avia%’ AND meta_value =”;
returns 2449 records. Can they be deleted?Some of the entries with the blank meta_value are created for the menu items. You will find entries like this when you actually run that query.
146 => (object) array( 'meta_id' => '1262', 'post_id' => '3228', 'meta_key' => '_menu-item-avia-style', 'meta_value' => '', ), 147 => (object) array( 'meta_id' => '1272', 'post_id' => '3229', 'meta_key' => '_menu-item-avia-division', 'meta_value' => '', ),
This allows the theme to properly structure the mega menu and apply the appropriate menu styles, so deleting those entries will directly affect the site.
Regards,
IsmaelOctober 21, 2021 at 10:33 pm #1325949Ok thank you
October 22, 2021 at 2:04 pm #1326065 -
AuthorPosts
- The topic ‘Huge number of avia records in wp_postmeta table’ is closed to new replies.