-
Notifications
You must be signed in to change notification settings - Fork 4
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
MD5 performance #3
base: master
Are you sure you want to change the base?
Conversation
+1 |
@@ -1494,9 +1562,15 @@ public function _startCacheGeneration( $filePath, $generatingFilePath ) | |||
$query = 'INSERT INTO ' . $this->dbTable( $filePath ) . ' ( '. implode(', ', array_keys( $insertData ) ) . ' ) ' . | |||
"VALUES(" . implode( ', ', $insertData ) . ")"; | |||
|
|||
try { | |||
//per testare scommenta la riga 1503 e sposta righe 1516-1548 fuori dal catch @todo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmmm :-)
Quite a lot of changes for a single pull request |
many thanks, Gaetano! |
@francescor yes, the PR says md5 being the topic, trying to solve everything and the kitchen sink in the same PR is not the way to go. Not easy to review and some of the fixes we might object to so then it delays the fix which is the important part. seems to be material for 4-5 PR's here; phpdoc, cs, md5, some return code changes, ... |
ok, we'll do it.. |
(yes, we can confirm: cluster db queries duration from 33 secs to 1.5 secs) |
wow - seems like the postgresql query planner needs some serious help with optimizing away functions which have deterministic results... (either that or this is also an effect of the other changes you put in the PR). |
Gggeek, didn't get what you mean.. :( |
He is referring to applying the same optimization other places (legacy kernel for instance), not applicable to this PR so you can safely move on splitting this up so we can merge it :) |
This reverts commit f53ae7c.
This pull-request boosts cluster performances (DB queries: durations) by having php (vs. postgres) calculating md5, together with some fixes (typos & phpdoc)