Skip to content

Add indexes to speedup DB queries#17498

Merged
DeepDiver1975 merged 1 commit into
masterfrom
add-db-indexes
Jul 8, 2015
Merged

Add indexes to speedup DB queries#17498
DeepDiver1975 merged 1 commit into
masterfrom
add-db-indexes

Conversation

@MorrisJobke

Copy link
Copy Markdown
Contributor
  • file_target is often used in the sharing code in JOIN statements for retrieval of shares

cc @DeepDiver1975 @butonic @PVince81 @icewind1991 @schiesbn

Fixes #7474

We noticed that adding this two indexes reduced a lot of DB load.

I tested both with sqlite and mysql.

* file_target is often used in the sharing code in JOIN statements for retrieval of shares
@MorrisJobke MorrisJobke added this to the 8.2-current milestone Jul 8, 2015
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@MorrisJobke

Copy link
Copy Markdown
Contributor Author

cc @carlaschroder for your information ;)

@karlitschek

Copy link
Copy Markdown
Contributor

Great. I just talked with @bboule about this.
We have to be very careful with DB compatibility. So this needs testing with all supported DBs.
Beside that 👍

@MorrisJobke

Copy link
Copy Markdown
Contributor Author

@karlitschek Postgres and Oracle will be tested on CI nevertheless ;)

@MorrisJobke

Copy link
Copy Markdown
Contributor Author

ah yes. @bboule Feel free to comment on this

@MorrisJobke

Copy link
Copy Markdown
Contributor Author

We noticed that adding this two indexes reduced a lot of DB load.

And it additionally allows the DB server to handle more queries per second while reducing the load. (factor 10)

@ghost

ghost commented Jul 8, 2015

Copy link
Copy Markdown

🚀 Test PASSed.🚀
chuck

@rullzer

rullzer commented Jul 8, 2015

Copy link
Copy Markdown
Contributor

👍 !!!
Indexes FTW!

@DeepDiver1975

Copy link
Copy Markdown
Member

👍

DeepDiver1975 added a commit that referenced this pull request Jul 8, 2015
Add indexes to speedup DB queries
@DeepDiver1975
DeepDiver1975 merged commit 2016073 into master Jul 8, 2015
@DeepDiver1975
DeepDiver1975 deleted the add-db-indexes branch July 8, 2015 18:41
@PVince81

Copy link
Copy Markdown
Contributor

Causes regression on mariadb: #17619

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing indexes to speed up large installations

6 participants