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

Add indexes to prevent Query Blocking with full search for Big offline map. #9274

Merged
merged 2 commits into from Jan 2, 2021

Conversation

evnngsky
Copy link
Contributor

@evnngsky evnngsky commented Dec 26, 2020

If TileDB is bigger than 2GB,
--- sq = QString("SELECT COUNT(size), SUM(size) FROM Tiles WHERE tileID IN (SELECT A.tileID FROM SetTiles A join SetTiles B on A.tileID = B.tileID WHERE B.setID ---
This query holds so long time QGCTileCache Worker.
I solved my problems with adding an index like that.

If TileDB is bigger than 2GB, 
--- sq = QString("SELECT COUNT(size), SUM(size) FROM Tiles WHERE tileID IN (SELECT A.tileID FROM SetTiles A join SetTiles B on A.tileID = B.tileID WHERE B.setID  ---
This query holds QGCTileCache Worker.
I solved problems with adding an index like that.
Add IF NOT EXISTS.
@evnngsky evnngsky changed the title Update QGCTileCacheWorker.cpp Add indexes prevent Query Blocking for Big offline map. Dec 29, 2020
@evnngsky evnngsky changed the title Add indexes prevent Query Blocking for Big offline map. Add indexes to prevent Query Blocking for Big offline map. Dec 29, 2020
@evnngsky evnngsky changed the title Add indexes to prevent Query Blocking for Big offline map. Add indexes to prevent Query Blocking with full search for Big offline map. Dec 29, 2020
@LorenzMeier
Copy link
Member

Makes sense and thanks!

@LorenzMeier LorenzMeier merged commit ac6a7f6 into mavlink:master Jan 2, 2021
@DonLakeFlyer
Copy link
Contributor

Same thing here. This was waiting for post stable so it could get some bake time on it before release.

@DonLakeFlyer
Copy link
Contributor

This pull is also incorrect in that there is no error checking on the index creation.

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

Successfully merging this pull request may close these issues.

None yet

3 participants