Stepel
Member
Hi ,
what is the best way to get user list with their last IP ?
When i use self::FETCH_LAST_ACTIVITY and
typical query from User Model
i get warning:
Mysqli statement execute 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
xf_user table contains about 2 300 000 records..
what is the best way to get user list with their last IP ?
When i use self::FETCH_LAST_ACTIVITY and
typical query from User Model
Code:
return $this->fetchAllKeyed($this->limitQueryResults(
'
SELECT user.*
' . $joinOptions['selectFields'] . '
FROM xf_user AS user
' . $joinOptions['joinTables'] . '
WHERE ' . $whereClause . '
' . $orderClause . '
', $limitOptions['limit'], $limitOptions['offset']
), 'user_id');
i get warning:
Mysqli statement execute 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
xf_user table contains about 2 300 000 records..