4 ms·
While this is technically true, using an index for either lookup makes the lookup happen in O(log n)-ish time, so neither is slow, even if you have a large numb
by angoragoats 3y ago
While this is technically true, using an index for either lookup makes the lookup happen in O(log n)-ish time, so neither is slow, even if you have a large number of active sessions.
- omeid2 3y agoThe issue is not individual lookup time, it is the aggregate cost of millions database lookup requests that you can avoid.
- angoragoats 3y agoAh, sorry I misunderstood what you were saying. Still, any modern database system could handle these lookups for all but the largest sites, so this smells like premature optimization for the vast majority of projects out there.