-
Notifications
You must be signed in to change notification settings - Fork 585
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
Object creating takes very long in ios (react native) #2845
Comments
Did the same update and just noticed this too, I've also noticed that when you update an entity you encounter the same issue |
Thanks for reporting this @eladgel @idanCemento ! |
sorry.. i can't share my project but it used to work very fast before the update |
@idanCemento We certainly don't need your full project, but if you could make a small self-contained repro-case which simulates what you do, that would be super helpful. We have no idea what your model looks like and how much data you are adding in those objects. |
It's complicated. |
Without an understanding of a synthetic way to reproduce this, it will be hard for us to understand and help. |
@idanCemento Can you try removing the indexed property just for the test? |
@eladgel Thanks for the feedback! |
+1 |
+1 |
@blagoev We found more info regarding this issue. On an object that have only native properties it work fine.
|
@tomershohet That's great! Could you possibly cook that down to a minimal repro case that demonstrate this? That would be highly appreciated! |
@bmunkholm It happen on every create with an object that have any link to another object. |
@tomershohet Thanks for the information. Could you possibly share a simple schema that we can use to reproduce this. cheers. |
schema:
code:
output:
|
Hi, Any updates on the issue? @blagoev |
hey, I created a sample project that reproduce the issue. https://github.com/idanCemento/realm-performance On my IOS simulator, it takes on average 14.41 ms to create an object with reference and 0.03 ms to create a simple object |
32 millisecond per object. It wasn't that why on previous versions, i believe it stated acting this way on version 5. Please prioritize this as it is a showstopper. Thanks |
Thanks all - highly appreciate the repo. We will investigate further. |
hey, any news with this issue? I'm worried that at this point we should already consider moving our app to use another please help |
We surely will investigate this further. There are some other high priority issues being handled right now, so I don't expect this can be looked at until next week. |
unfortunately no... last versions don't support latest versions of node while react native already requires node@12 |
Hi, |
Hi, @blagoev |
+1 |
I have a single write transaction that creates a bunch of linked objects. Using the latest release it took my app around 110 seconds to complete. I downgraded to version 3.6.5 and the same write transaction took less than 1 second! One interesting thing to note -- with the latest release if I enable remote debugging then the write transaction is much faster. It's actually even faster than the release build. |
@WJimmyCook And this is also just on iOS, and not on Android? |
@bmunkholm Yeah, this is for iOS. I'm not working on an Android version for this app so I'm not sure what Android is like. |
@bmunkholm I ran @idanCemento's realm-performance on iOS & Android - the bug is iOS specific. See screenshots: |
Hi there! I'm having the same issue developing an iPad app. Is there any update on this? |
This is fixed and will be part of our next release. @idanCemento thanks for the top notch report and repro app. |
recently updated from 3.6.4 to 5.0.3.
object creating takes much longer that it used to on both simulators and iphones + blocks ui.
Expected Results
quick creating as it used to be
Actual Results
average object creation takes about 400ms and blocks the ui
Code Sample
Versions
The text was updated successfully, but these errors were encountered: