-
When I try to update, Joomla will give me a 1104 database-error: "The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay". I woud state that if a Joomla update requires a SELECT statements to search for over 6.7 million (joined) database entries, it might be wise to either try to economise the SELECT statements for the updates, or - easiest solution - give the option to SET SQL_BIG_SELECT=1 for the Joomla update module only. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
On https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html they say:
So on the mentioned MySQL versions, the parameter doesn't refer to the number of rows, it refers also the the cumber of row combinations or disk seeks. Nevertheless we should check if the issue is caused by a JOIN which has the the mentioned problems. @Nibbik When exactly do you get the issue? When a Joomla update was found and you start the update? Or also when you start an update for an extension? |
Beta Was this translation helpful? Give feedback.
-
Is there any way I can retrieve the SQL-statement that causes this 1104-error? To see if we can simplify the JOIN, for instance by limiting the results in a subquery before the JOIN kicks in? It should be possible to create a SQL-statement that requires less than 67108864 (=67 million, not 6.7 as I mentioned earlier) possible hits to be evaluated... |
Beta Was this translation helpful? Give feedback.
-
It is, by the way, a frequently reported problem: |
Beta Was this translation helpful? Give feedback.
-
@Nibbik For the issue when trying to update the core I have created a pull request which fixes it. Please test #42576 . |
Beta Was this translation helpful? Give feedback.
@Nibbik For the issue when trying to update the core I have created a pull request which fixes it. Please test #42576 .