objectbox / objectbox/objectbox-java

The first three times query.find It's slow

Open
#890 22 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
4.6k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

Sir,

Version 2.6.0/2.7.0

The first 2-3 times query.find It's slow. It's going to speed up after about 4 times.

1st: 4154ms
2nd: 3066ms
3.rd: 782ms
4.th: 741ms

There are 360000 lines in the whole database, and use .order。

Test found that as long as there are search conditions, it is the same rule.
Could you check it, please? Urgent need of project.

Thanks a lot.

Rain
2020-07-31

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported query.find timings with a 360,000-line database, search conditions, and order applied, comparing the first four runs. Investigate why the initial searches are slower; done means the first-run performance issue is addressed and the measurements show improved, repeatable timings.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.