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

How to improve query performance? #1907

Open
parselife opened this issue Oct 21, 2022 · 0 comments
Open

How to improve query performance? #1907

parselife opened this issue Oct 21, 2022 · 0 comments

Comments

@parselife
Copy link

parselife commented Oct 21, 2022

The type of Key/Value Store is RocksDB

There are about 800 thousand features in my type , when execute a cql query, it spent about 2min, how can i improve this?
the query code snippt like :

      VectorQueryBuilder queryBuilder = VectorQueryBuilder.newBuilder();
       queryBuilder.addTypeName("xxType");
       queryBuilder.constraints(queryBuilder.constraintsFactory().cqlConstraints(cqlExpression));
       Query<SimpleFeature> query = queryBuilder.build();
       try (CloseableIterator<SimpleFeature> iterator = dataStore.query(query)) {
           while (iterator.hasNext()) {
               features.add(iterator.next());
           }
       }

Anyone can help me? Thx

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

1 participant