Hi everyone,
I’m facing a performance issue with the following query:
SELECT `appid`, `configkey`, `configvalue` FROM `oc_preferences` WHERE `userid` = 'op3';
This query is frequently appearing in the slow query log.
After checking the data, I found that there are over 5,000 records related to login_token
in the oc_preferences
table for this user.
Here’s a screenshot showing the result of this query:
I suspect these records are contributing to high database load and slower performance, so I’m considering deleting unused or outdated login_token
entries manually.
- Is it safe to manually delete
login_token
entries fromoc_preferences
? - Is there an official or recommended way (e.g., via
occ
) to clean up stale login tokens?
Thanks!