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
We released supertokens to our production environment and everything went became slow then went down.
Analysis showed SELECT * FROM subscriberdb.st_userid_mapping WHERE app_id = 'public' AND (supertokens_user_id = '123' OR external_user_id = '123'); as the top slow query in RDS.
Useful informations
The problem with this query is, it uses OR which does not use indexes for those columns.
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
We released supertokens to our production environment and everything went became slow then went down.
Analysis showed
SELECT * FROM subscriberdb.st_userid_mapping WHERE app_id = 'public' AND (supertokens_user_id = '123' OR external_user_id = '123');
as the top slow query in RDS.Useful informations
The problem with this query is, it uses
OR
which does not use indexes for those columns.The text was updated successfully, but these errors were encountered: