-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Test for #4948 (RxDocument.get() on additonalProperty) #4949
Test for #4948 (RxDocument.get() on additonalProperty) #4949
Conversation
Hi @adam-lynch Checking if the content is the same, works assert.deepStrictEqual(myDocument.get('tags').hello, tags.hello);
assert.deepStrictEqual(myDocument.get('tags').world, tags.world); Also this is why |
@pubkey ah yes, I've improved the test now. While what you said was true, it's still failing now; both |
Can you rebase so that the CI can run? |
RxDB uses a prebuild constructor (per collection) to create the RxDocument from the documentData that comes out of the storage. The only other options would be the proxy API, but the Proxy API is so slow that I do not want to use it for accessing document properties, because the performance is so important at this. So atm |
OK I understand; if we want to use |
Yes, atm you need |
I did some performance tests and refactorings. This will be fixed in the next major version. #5063 |
* IMPROVE property access performance * FIX #4949 RxDocument.get() on additonalProperty * IMPROVE performance * IMPROVE performance * FIX bun
This PR contains:
Describe the problem you have without this PR
This contains a test for #4948