You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How large would be large enough to see these effects?
Hey @GuySartorelli we have also started seeing this issue quite frequently recently, our members table now has just over 1,000,000 records. Hope this helps :)
there is no need to have an unique index, a btree should be enough. uniqueness code be enforced at code level.
What would the advantage be of implementing uniqueness checks in PHP code when the database can handle that for us?
Have a larger member table
How large would be large enough to see these effects?
Click on the mail
What is "the mail"?
There is no advantage to add uniqueness in php, but since it was disabled for a reason, i guess this hasn't changed. Dealing with "null" unique values is very annoying. Currently, there is no check at all as far as I can tell.
=> step 1 : adding an index to avoid issues
=> step 2 : improve and make sure the autologin token is unique
I don't know at which point a query without an index is going to cause issues, but from my experience, I rarely query something without on index on anything > 10k records
On my current project, I have more than 1 million entries on my member table (well, maybe not the best design decision I made in my life :-D i should probably have created one for "real" users and one for those without login credentials), so these things are very visible.
the mail => the email that contains the reset link, sorry that wasn't clear i updated the issue accordingly
Module version(s) affected
4x,5x
Description
Member::member_from_autologinhash is slow on large member tables because there are no indexes
There was an index at some point but it was removed
silverstripe-framework/src/Security/Member.php
Line 108 in 7e6c809
there is no need to have an unique index, a btree should be enough. uniqueness code be enforced at code level.
How to reproduce
Possible Solution
Restore the btree index
Additional Context
Related
#11384
Validations
silverstripe/installer
(with any code examples you've provided)The text was updated successfully, but these errors were encountered: