Skip to content
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

Why is version 2.3.4 several times slower than version 2.0.0 in the sorting case? A total of 140,000 pieces of data, V2.0.0, 500ms<----> V2.3.4, 30s ????? (Android 7.0) #769

Closed
1341290135 opened this issue Sep 27, 2019 · 12 comments
Assignees
Milestone

Comments

@1341290135
Copy link

Why is version 2.3.4 several times slower than version 2.0.0 in the sorting case? A total of 140,000 pieces of data, V2.0.0, 500ms<----> V2.3.4, 30s ????? (Android 7.0)

@greenrobot
Copy link
Member

This shouldn't happen. Can you share how your query looks like?

@1341290135
Copy link
Author

1341290135 commented Sep 28, 2019

I had test this for a long time,

  1. build.gradle:
    ext.objectboxVersion = '2.0.0'
    //ext.objectboxVersion = '2.3.4'
    dependencies {
        classpath "io.objectbox:objectbox-gradle-plugin:$objectboxVersion"
    }

only modified viersion, the query speed from 500ms ---> 30s (Limit(0,80),total about 140000)

QueryBuilder<SongItemAllNew> queryBuilder = songItemAllNewBox.query();
queryBuilder.order(SongItemAllNew_.strSongName); 
queryBuilder.build().find(0,80); 
  1. My product android 7.0(Arm) use 2.0.0

@greenrobot-team
Copy link
Member

greenrobot-team commented Sep 30, 2019

This is very unusual, we'll try to reproduce this. In the meantime: it would help us if you can share a small example project that reproduces this issue.

@greenrobot-team greenrobot-team self-assigned this Sep 30, 2019
@greenrobot-team
Copy link
Member

This issue is confirmed. We'll investigate this internally. Thanks again for reporting!

@1341290135
Copy link
Author

I had sent the demo to you by email.

@1341290135
Copy link
Author

1341290135 commented Oct 2, 2019 via email

@1341290135
Copy link
Author

1341290135 commented Oct 2, 2019 via email

@1341290135
Copy link
Author

1341290135 commented Oct 2, 2019 via email

@greenrobot
Copy link
Member

This is fixed internally. We'll let you know once this is published.

@greenrobot-team greenrobot-team added this to the 2.4.0 milestone Oct 7, 2019
@greenrobot
Copy link
Member

We released 2.4.0-RC addressing this. Could you post your results with that version?

@1341290135
Copy link
Author

Thank you very much. It's all right now. 2.4.0-RC

@greenrobot-team
Copy link
Member

Thanks for reporting back! Closing this then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants