Get WPFTS Pro today with 25% discount!

DB table size?


  • Hi, ive installed the free version of your search program to see how well it works & decide if im going to get the pro version of it.

    In this process, the product seems to work well, but it has created 2 db tables that are huge in size.

    WP's DB size by default with 460k posts is only 6GB

    Your two tables are:
    tp - 26GB
    vectors 18GB

    Indexing regardless takes a day to process & is now flipping between optimizing which never does any counting & the indexing what i would assume is a new post.

    This is after the initial indexing that took 1 day to do.

    Are the 2 tables going to be removed as they are ridiculous in size after the indexing is complete?


  • Enable Index Optimizer - Enabled
    wpftsi_tp ~260,116,167 InnoDB 25.8 GiB
    wpftsi_vectors ~292,656,079 InnoDB 17.5 GiB

    Indexing... 99.99%
    Pending: 1 of 471053
    Est. Time: 00:00:00

    Optimizing... 0.00%
    Records: 471053
    ...Ready for changes...


  • If i disable Use for Blocks, save the changes & reset the building of indexes this is getting turned back on by itself?


  • Hello, @ALG1970

    Thank you for your question! It seems you found a bug in the plugin!

    The "tp" table is actually a temporary table for document IDs, used only for searching and not used when building the index. Normally this table should not grow, on the contrary, its normal size is 0 records.

    This made me think that there might be an error in the code and this table is not cleared in a timely manner. Indeed, the error was found and corrected. I've poured the new version into the Wordpress repository, so I recommend updating now (version 1.59.209).

    https://wordpress.org/plugins/fulltext-search/

    Immediately after installation, do any search query and the "tp" table should be automatically cleaned up (due to its size, this process may take a long time).

    As for the table "vectors", together with the tables "words", "docs" and "index", it represents the search index. All your documents are encoded in these tables in the form of numbers and ratios, and the structure of the tables is such that it allows you to find documents with the specified words in milliseconds, even if the size of the tables is tens of gigabytes. This is the point of indexed search.

    So the answer is no. You can't shrink the "vectors" table.

    If you are concerned about the database size, I can offer you to disable index optimisation (there is such an option on the main page of the plugin settings).

    The index optimiser essentially creates a compressed version of the main index and stores it in the "vc" table, which can also take up a large size.

    If you turn off optimisation, the "vc" table will be cleaned up (or you can clean it up manually with the "truncate table wpftsi_vc" query.

    Hope this helps.

    Please let me know if new WPFTS version solved you problem.

    Thank you!


  • Im not sure what you did in the update, but it totally kills the site, had to disable the plugin completely now.

    The TP table instantly grew to 65GB in size & i had to truncate it.


  • Hi @ALG1970

    Yes, it was another bug.

    I've just updated the plugin to version 1.59.211 that should fix the issue.

    The "_tp" table should not grow anymore.

    Also this should not make any additional load to the server.

    Please update WPFTS and give it another chance.

    Thank you, let me know if this goes fine now.

Suggested Topics

  • 0 Votes
    11 Posts
    106 Views
    EpsilonAdminE

    Hi @inkedraskal

    Big thanks for your waiting!

    I was considering various options to fix the problem you wrote about. I tried to find the most non-invasive solution that would fix the problem but not create new ones (this always happens when developing a plugin that is used by tens of thousands of users with different versions of WP, PHP, and MySQL).

    But finally settled on a solution that I ask you to test on your site. In a private message, I sent a link to the new version of the Pro plugin.

    Please install it and let me know if it fixes the problem.

    Note that this problem is not directly related to your theme; it is much deeper and concerns the fact that Wordpress deliberately removes all HTML tags when rendering the core/post-excerpt block, and thus, this problem will be present in ANY block theme.

    The new version fixes this. I managed to get this effect without editing WP Core, only with the help of hooks.

    Thank you very much. Your request made the product better. And the whole WordPress world, because this solution will be implemented in a free version also.

  • 0 Votes
    2 Posts
    222 Views
    EpsilonAdminE

    Hi @Simply_Friend

    Thank you for the question. Actually it's not planned to be added to the plugin core, because this feature (search by date FROM - TO) is already implemented in WP Native search (in WP_Query()).

    So you can search with date using WP_Query parameter date_query.

    Here is the topic: https://developer.wordpress.org/reference/classes/wp_query/#date-parameters

    Another question is if you want date picker fields to be added next to the text query field in the search widget.

    This is fairly easy to do for the average WP developer. There are probably some visual constructors to do this, but I can’t recommend anything here - if you find a solution, please write. It will be useful for other users.

    We don't plan to add a search form builder to the core functionality of WPFTS because we don't want to compete with Elementor / Beaver Builder / Visual Builder etc etc, although we will probably do a detailed tutorial on how to use the builders to make a search widget with additional fields.

    Hope this helped you.

    Thanks!

  • how to add buttons to the search engine

    Frequently Asked Questions
    5
    1 Votes
    5 Posts
    727 Views
    EpsilonAdminE

    @guarani23 Can you send me access to your website to the private messages? I can make a code, it's really simple.

  • How to index post tags and have results

    Frequently Asked Questions
    1
    1 Votes
    1 Posts
    554 Views
    No one has replied
  • 0 Votes
    3 Posts
    971 Views
    I

    @epsilonadmin custom block.
    Here is info how to create block - https://www.advancedcustomfields.com/blog/acf-5-8-introducing-acf-blocks-for-gutenberg/
    So we register new block, assigned fields for this block.
    We add block on page. When I try to search phrase from one of these field - page not added to search result

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors