• I have created 300 collections (they only have the core title and description metadata). In each collection I only have one item (no image, no documents, just title and description). For some reason, the wordpress administration panel gets quite slow, if I enter the Tainacan plugin it takes a long time to load the list of collections, if I try to edit an item it also takes time to load (8+ seconds approx.).

    If I disable Tainacan plugin, wordpress administration panel gets normal.

    I’ve followed the optimization steps outlined here: https://tainacan.github.io/tainacan-wiki/#/optimization, but it doesn’t make any difference.

    It would not seem that 300 collections and 300 items are so much information to affect performance.

    What could it be?

    I have on the same computer another instance of wordpress with taincan, with 1700+ items, with at least 10 custom metadata, with pdf, thumbnail, but all in a single collection, and in this case everything loads fast.

    Any ideas?

    Thanks

    • This topic was modified 3 years, 9 months ago by lbov.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @lbov!

    Thank you for your performance investigation. I have one thing in mind… I can think of a number of situations where loading all collections without using pagination is required. Some of them can be improved (for example, using autocomplete with infinite-loading instead of select inputs on some forms). But in other situations this can be tricky, such as building the repository level items list filters, which requires every collections labels. In some templates, for example, we have to fetch all existing collections to figure out the current post type and decide how to display the proper archive or single file.

    So yes, improving performance in a scenario like that is certainly something that we need some work. That said, most of our work has been focused on providing strategies for fast items request, regardless of the amount and diversity of metadata that we have. That is because in most of our use cases, a huge list of collections have been less frequent that an average list of collections with a large number of metadata and taxonomies.

    So I would open an issue to investigate scenarios where we can improve it, but also question why are you making such usage. If your items have only title and description why are they even in separate collections?

    Elaborating a bit more… You should also take notice that every collection that you create is a new post_type registered on WordPress… and I can imagine a good amount of plugins, themes and even core parts that would perform this request of which are the exiting post_types… that would explain the slowness on the entire WordPress administrative panel… Still, we may investigate in more details to see how to improve it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tainacan performance very slow’ is closed to new replies.