Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1325602

    Hello
    querying
    SELECT * FROM wp_postmeta WHERE meta_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
    Mauro

    #1325668

    Hey 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,
    Ismael

    #1325778

    Hello 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 * FROM wp_postmeta WHERE meta_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 * FROM wp_postmeta WHERE meta_key LIKE ‘%avia%’ AND meta_value =”;
    returns 2449 records. Can they be deleted?
    Access is in private content
    Thank you
    Mauro

    #1325815

    Hey!

    Thank you for the update.

    SELECT * FROM wp_postmeta WHERE meta_key LIKE ‘%avia%’
    returns 4371 records

    As 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,
    Ismael

    #1325949

    Ok thank you

    #1326065

    Hi,

    Glad Ismael could help! Let us know if you have any other questions and enjoy your weekend :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Huge number of avia records in wp_postmeta table’ is closed to new replies.