-
Notifications
You must be signed in to change notification settings - Fork 984
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
[perf] upgrade realm and improve schemas/queries #8336
Conversation
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (24)
|
I wonder if this might help with #8326 . |
d3294d6
to
458543a
Compare
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.
I'm approving only the yarn.lock
changed, the Clojure stuff is black magic.
(assoc :appearing? false) | ||
(cond-> message | ||
current-chat? | ||
(assoc :seen true) |
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.
could you elaborate?
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.
appearing
is useless, not needed.
If the message is received in the current chat it is considered seen. It was already the case before just not done here
4695338
to
4974141
Compare
4974141
to
5035895
Compare
98% of end-end tests have passed
Failed tests (1)Click to expand
Passed tests (48)Click to expand |
100% of end-end tests have passed
Passed tests (1) |
@asemiankevich this is a bug I've seen a few times already in other PR, I have never been able to reproduce in the emulator so I don't really now where it is coming from |
|
1 similar comment
|
@yenda i've logged it separately, no worries! Apart from this current PR looks good to me, upgrade looks okay-ish. |
5035895
to
af0e10d
Compare
|
af0e10d
to
fda6c36
Compare
|
- upgrade to realm 2.28 to benefit from perf improvements - remove user-statuses and replace by seen and outgoing-status fields to get rid of a lot of bloat queries and computations - remove unused seen message, bottom-infos - remove unused fields in transport schema - use objectForPrimaryKey whenever possible instead of get by field Signed-off-by: yenda <eric@status.im>
fda6c36
to
1ae42ea
Compare
|
to get rid of a lot of bloat queries and computations and in-queries which don't
work in this version of realm
Tests
Tested on Android
Tested:
To test:
status: wip