Error: SELECT would examine more than MAX_JOIN_SIZE rows

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
marpe
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Aug 21, 2022 10:41 am

Error: SELECT would examine more than MAX_JOIN_SIZE rows

Post by marpe » Sun Aug 21, 2022 12:22 pm

When I go to the Joomla update page, I get an error message. I am asking for help what to do with it:

Code: Select all

42000, 1104, 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 
Last edited by toivo on Sun Aug 21, 2022 9:49 pm, edited 1 time in total.
Reason: mod note: retitled on request

User avatar
ceford
Joomla! Ace
Joomla! Ace
Posts: 1570
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Update error

Post by ceford » Sun Aug 21, 2022 5:40 pm

Came up somewhere else not so long ago. The only thing I can find is this:

https://issues.joomla.org/tracker/joomla-cms/17580

Anyone else?

Carlo Rhiger
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Mar 31, 2010 7:50 am
Location: Silkeborg, Danmark
Contact:

Re: Error: SELECT would examine more than MAX_JOIN_SIZE rows

Post by Carlo Rhiger » Tue Sep 06, 2022 9:25 am

Two of "my sites" come up with the same error when I try to update J4.1.5. to J4.2.2.
Searched the web, but could only find "professor-like" solutions not telling exactly which file to edit - typical.
I hope someone will come up with an understandable solution.
You do not have the required permissions to view the files attached to this post.
Med venlig hilsen - Carlo Rhiger

Livet er fuld af udfordringer - en af dem er Joomla :).
Hovedside https://www.rhiger.dk

henningbak
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Feb 22, 2014 11:00 am

Re: Error: SELECT would examine more than MAX_JOIN_SIZE rows

Post by henningbak » Wed Sep 28, 2022 8:54 am

Hi folks
I get the exacty same error message (1104) when I update Joomla from 4.2.2 to 4.2.3
Any Ideas?
Henning

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 29792
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Error: SELECT would examine more than MAX_JOIN_SIZE rows

Post by Per Yngve Berg » Wed Sep 28, 2022 10:34 am

MAX_JOIN_SIZE is set to small in the Configuration file of your database server.

zib23
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Dec 24, 2018 7:15 pm

Re: Error: SELECT would examine more than MAX_JOIN_SIZE rows

Post by zib23 » Fri Feb 03, 2023 6:24 pm

Hello,
Where can I find that configuration file please?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 29792
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Error: SELECT would examine more than MAX_JOIN_SIZE rows

Post by Per Yngve Berg » Fri Feb 03, 2023 7:41 pm


henningbak
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Feb 22, 2014 11:00 am

Re: Error: SELECT would examine more than MAX_JOIN_SIZE rows

Post by henningbak » Wed Mar 15, 2023 1:41 pm

I got a solution that worked fine from Joomla 4.2.3 to Joomla 4.2.8:
Open the file:
/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php,
After Line 290 insert a statement:
mysqli_query($this->connection,"SET SQL_BIG_SELECTS = 1;" );
Result:
if ($this->options['sqlModes'] !== [])
{
$this->connection->query('SET @@SESSION.sql_mode = \'' . implode(',', $this-
>options['sqlModes']) . '\';');
mysqli_query($this->connection,"SET SQL_BIG_SELECTS = 1;" );
}

This change does not work with Joomla update to 4.2.9!


Post Reply

Return to “Administration Joomla! 4.x”