Join GitHub today
Chunk the tokens array to avoid making extremely long queries. #17390
Pull Request for Issue # .
Summary of Changes
Chunk the tokens array (which can potentially be very long) before using it to generate a query. Run a query for each chunk instead of the whole array.
Well, I expect the article to save properly and the page to reload without crashing.
Most likely, the article will save but in the post-save indexing process there will be a timeout. This happens because we are looping over a huge array of tokens and adding each one to the
One solution is to avoid getting a huge
Documentation Changes Required
If it gets tested, sure. Looking at this again reminded me of something though.
There's already a similar (yet less elegant) implementation of this in the SQL Server subclass and I think it essentially is the same thing, so it looks like the overriding method can be removed.
I have tested this item
Tested and did code review too,
i am using similar code for updating DB in a faster way,
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17390.