Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Dramatically improves query times for site with 100,000+ users. Down from 7ms to 0.2ms as an example for me.
Comments
Comment #1
metzlerd CreditAttribution: metzlerd as a volunteer and commentedAdding an index is ok but adding a unique index is not something we should do. It is perfectly ok to have two CAS user names associated with the same drupal account.
Comment #2
dunx CreditAttribution: dunx commentedNot in my use case, but of course a non-unique index is better than nothing.
Comment #3
bkosborneThis would have to be added as non-unique, so adjusting title.
Note that in D8, it's already forced to be unique. We use the external auth module which enforces that. 1 CAS username = 1 Drupal username.
Comment #4
bkosborneComment #5
apaderno