Skip to content

Conversation

@mrow4a
Copy link
Contributor

@mrow4a mrow4a commented Mar 28, 2017

This does not reduce amount of DB calls, but does not calls repetetively the same functions if it is earlier known that file does not exists, caching that information

  • Some update in unit tests

selection_113

@mrow4a mrow4a added this to the 10.0 milestone Mar 28, 2017
@mrow4a mrow4a requested a review from DeepDiver1975 March 28, 2017 21:12
@mention-bot
Copy link

@mrow4a, thanks for your PR! By analyzing the history of the files in this pull request, we identified @DeepDiver1975, @PVince81 and @mmattel to be potential reviewers.

@mrow4a mrow4a requested a review from PVince81 March 28, 2017 21:12
// Node is not existing, as it was explicitely set in the cache
// Next call to getNodeForPath will create cache instance and unset the cached value
return false;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sir.. :>

selection_114

@mrow4a mrow4a changed the base branch from master to optimize_put March 28, 2017 21:22
@mrow4a
Copy link
Contributor Author

mrow4a commented Mar 29, 2017

@butonic Does the order matter or should I change the test? Not also sure why this popes out though
selection_115

@mrow4a mrow4a changed the base branch from optimize_put to master March 29, 2017 08:31
@mrow4a
Copy link
Contributor Author

mrow4a commented Mar 30, 2017

Needs some unit tests or integration?

* @return bool
*/
function nodeExists($path) {
$path = trim($path, '/');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my first worry was that the superclass might not support false but checking the code shows that we anyway override all methods using the cache, so this should be ok

@PVince81
Copy link
Contributor

PVince81 commented Apr 6, 2017

Note: this only affects old endpoint PUT. Not sure about the new endpoint.

A unit test would be nice.

@PVince81 PVince81 modified the milestones: 10.0.1, 10.0 Apr 26, 2017
@PVince81 PVince81 modified the milestones: 10.0.2, 10.0.1 May 19, 2017
@PVince81 PVince81 modified the milestones: 10.0.2, 10.0.3 May 26, 2017
@PVince81 PVince81 merged commit baee742 into master May 31, 2017
@PVince81 PVince81 deleted the optimize_put_2 branch May 31, 2017 08:24
@PVince81
Copy link
Contributor

@mrow4a backport to stable10 ?

@mrow4a
Copy link
Contributor Author

mrow4a commented May 31, 2017

@PVince81 I have no idea if this applies to new endpoint, I constantly look for optimizations for both new and old

@PVince81
Copy link
Contributor

check it ? debugger, etc

@PVince81
Copy link
Contributor

@mrow4a please backport if possible

@PVince81 PVince81 assigned mrow4a and unassigned PVince81 Aug 15, 2017
@mrow4a
Copy link
Contributor Author

mrow4a commented Aug 15, 2017

@PVince81 ok, will give it priority tomorrow.

@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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

5 participants