Thank you for giving the plugin a try and for taking the time to give this feedback. I am very sorry to hear there was heartache involved. I would welcome an opportunity to get more information and to address the performance issues you experienced.
There are only two times The Media Library Assistant (MLA) performs any database activity at all:
1. When you code an [mla_gallery] shortcode in a page or post.
2. When you access the “Assistant” submenu in the Media portion of the admin sceens.
If you are experiencing database issues at any other time, I’d like to know because that would be an unexpected problem.
The [mla_galley shortcode] uses the same database access routines (WP_Query) used by the WordPress [gallery] shortcode. If your issue is with [mla_gallery] I’d like to know more about the query you’re using so I can look into it.
The “Assistant” admin submenu is very similar to the standard WordPress Media Library display with one critital difference. The “where-used” reporting columns (Featured in, Inserted in, Gallery in and MLA Gallery in) need to look through every post and page in the site to do their job. The Gallery in and MLA Gallery in functions actually execute each shortcode query to see which pages and posts are included in the gallery output. This is, indeed, database intensive. WordPress requires this processing to be performed even if the where-used columns are hidden.
Because I have been concerned about this, I put a question in the “FAQ” section of the plugin page: “The Media Library Assistant table listing seems sluggish; is there anything I can do to make it faster?” Yours in the first response I’ve had.
There are many things I can do to reduce the database load required to perform the where-used functions, if that is where your issue lies. I can cache the results and re-use them (not done yet because the results will change if you edit the gallery shortcodes or the attachments). I can provide a settings switch to turn the processing off entirely until you need it, or make refreshing the where-used information a “click here to update/refresh” function.
If your issue is in some other area, I’d like an opportunity to address whatever you’ve found to be a problem. You can respond in this topic or reach me directly from the FTJ “Contact Us” page:
https://fairtradejudaica.org/our-story/contact-us/
Donald Knuth once said “Premature optimization is the root of all evil (or at least most of it) in programming.” I’ve been focused on adding functions and building an audience, but I want to do whatever I can to make this usable for larger sites, too.
Thanks again for your feedback. I hope I can use it to make the plugin better for everyone.
David Lingren