Skip to content

Remove children from the cache in one query - #13394

Merged
DeepDiver1975 merged 2 commits into
masterfrom
cache-remove-folder
Jan 15, 2015
Merged

DeepDiver1975 merged 2 commits into
masterfrom
cache-remove-folder

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

Go from 1 query per folder + 1 query per file to 2 queries per folder

cc @PVince81 @DeepDiver1975

@ghost

ghost commented Jan 15, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/6985/
👍 Test PASSed. 👍

@PVince81

Copy link
Copy Markdown
Contributor

Can you extend "testFolder" to have a second level of folders ?
Currently the test folder only contains two files "foo" and "bar" and doesn't cover the case where we recurse into subdirs.

@icewind1991

Copy link
Copy Markdown
Contributor Author

Added extra unit test

@MorrisJobke

Copy link
Copy Markdown
Contributor

@MorrisJobke

Copy link
Copy Markdown
Contributor

before 136 * OC_DB::executeAudited
after 7 * OC_DB::executeAudited

@MorrisJobke

Copy link
Copy Markdown
Contributor

@ghost

ghost commented Jan 15, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/6999/
👍 Test PASSed. 👍

@PVince81

Copy link
Copy Markdown
Contributor

Code looks good, makes sense 👍

@PVince81

Copy link
Copy Markdown
Contributor

@DeepDiver1975 if this is ok for 8.0 then we can merge this ?

@MorrisJobke

Copy link
Copy Markdown
Contributor

Even more impressive is the deletion of 2.2 GB with nearly 700 files and process time drops from 52.9s to 1.63s \o/ I like that profiling :)

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@DeepDiver1975 if this is ok for 8.0 then we can merge this ?

let me have a look ... had some reallife the past few houes 😉

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@MorrisJobke can you please share the profiling graph with me? THX

@LukasReschke

Copy link
Copy Markdown
Contributor

@MorrisJobke can you please share the profiling graph with me? THX

They are posted above? - The links in #13394 (comment) work fine for me here

@DeepDiver1975

Copy link
Copy Markdown
Contributor

They are posted above? - The links in #13394 (comment) work fine for me here

thx - the compare did not work .... anyway

@DeepDiver1975 DeepDiver1975 added this to the 8.0-current milestone Jan 15, 2015
@DeepDiver1975

Copy link
Copy Markdown
Contributor

@DeepDiver1975 if this is ok for 8.0 then we can merge this ?

🚀 THX guys! - Now that you know how it works: GO GO GO 😉

DeepDiver1975 added a commit that referenced this pull request Jan 15, 2015
Remove children from the cache in one query
@DeepDiver1975
DeepDiver1975 merged commit 0ebcc2d into master Jan 15, 2015
@DeepDiver1975
DeepDiver1975 deleted the cache-remove-folder branch January 15, 2015 21:33
@MorrisJobke

Copy link
Copy Markdown
Contributor

@MorrisJobke

Copy link
Copy Markdown
Contributor

thx - the compare did not work .... anyway

Upps ... wrong link. I updated it above.

https://blackfire.io/profiles/compare/97434597-dc19-4756-a76f-bdde8647a36e/graph

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@icewind1991 nice job - THX

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 7 new issues, 4 updated code elements

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 14, 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.

6 participants