4 ms·
https://github.com/plandex-ai/plandex/blob/9017ba33a627c518aa62f1a1f15ebd3e3f483928/app/server/db/auth_helpers.go#L46 https://github.com/plandex-ai/plandex/blob
by Zagreus2142 1y ago
https://github.com/plandex-ai/plandex/blob/9017ba33a627c518aa62f1a1f15ebd3e3f483928/app/server/db/auth_helpers.go#L46 https://github.com/plandex-ai/plandex/blob/9017ba33a627c518a...
Well your perfectionism needs to be pointed towards this line. If you get truly large numbers of users this will either slow down token checking directly or your process for removing ancient expired tokens (I'm assuming there is such a process...) much slower and more problematic.
- danenania 1y agoLol is that really the best example you could find?
- Zagreus2142 1y agoTruly the response of someone who is a perfectionist using llms the right way and not a slop coder
- danenania 1y agoIt's just funny because there are definitely examples of bad code in that repo (as there are in any real project), but you picked something totally routine. And your critique is wrong fwiw—it would easily scale to millions of users. Perhaps you could find something better if you used AI to help you...