-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(WC)_: Create indexes for WC queries #5989
base: develop
Are you sure you want to change the base?
Conversation
Jenkins Builds
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5989 +/- ##
===========================================
- Coverage 47.49% 47.48% -0.02%
===========================================
Files 849 849
Lines 138606 138606
===========================================
- Hits 65836 65813 -23
- Misses 64984 64996 +12
- Partials 7786 7797 +11
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexjba do we really need this indexing?
Wondering now, how many rows do we expect from an average user?
Do we do any table cleaning once the session expires?
We don't do any cleaning! And then it could become an issue if the query is not optimized. Moreover, it adds some weight to this decision when we consider that everything is processed synchronously. Now the reasoning why we never delete sessions is another topic that should be discussed soon. What I've found so far is that this was an informed decision.
|
But the session has its own expiration date, I don't think that we need to keep an expired session in db, but agree we should discuss that. |
Create the indexes needed for WalletConnect queries based on
.expert
recommendations.Fixing: status-im/status-desktop#14975