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

Use chunks of 999 when preload directory content #29405

Merged
merged 1 commit into from
Nov 2, 2017
Merged

Conversation

VicDeo
Copy link
Member

@VicDeo VicDeo commented Oct 31, 2017

Description

Use chunks of 999 when preload directory content

Related Issue

#29233

Motivation and Context

999 placeholder limit in Sqlite/Oracle

How Has This Been Tested?

With a unit test

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@VicDeo VicDeo added this to the development milestone Oct 31, 2017
@VicDeo VicDeo force-pushed the fix-29233 branch 2 times, most recently from 653e37c to a5ea1d2 Compare October 31, 2017 21:46
@codecov
Copy link

codecov bot commented Nov 1, 2017

Codecov Report

Merging #29405 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #29405      +/-   ##
============================================
+ Coverage     60.51%   60.51%   +<.01%     
- Complexity    17193    17198       +5     
============================================
  Files          1031     1031              
  Lines         57288    57297       +9     
============================================
+ Hits          34667    34676       +9     
  Misses        22621    22621
Impacted Files Coverage Δ Complexity Δ
apps/dav/lib/DAV/FileCustomPropertiesBackend.php 91.86% <100%> (+0.95%) 23 <4> (+5) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e24299...9f00dd5. Read the comment docs.

@VicDeo VicDeo requested a review from PVince81 November 1, 2017 20:10
@VicDeo VicDeo self-assigned this Nov 1, 2017
*/
private function getChunks($toSlice, $otherPlaceholdersCount = 0) {
$databasePlatform = $this->connection->getDatabasePlatform();
if ($databasePlatform instanceof OraclePlatform || $databasePlatform instanceof SqlitePlatform) {
Copy link
Contributor

Choose a reason for hiding this comment

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

In the past I think I'd say let's do the workaround for all DBs to avoid hard-coding the names. But after all this time I'm wondering: why impair the performance of the other DBs just because these two ?

And the code as you wrote it is better than just having a PHPDoc saying "workaround for XYZ", so let's keep it.

Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍 code looks good

@VicDeo
Copy link
Member Author

VicDeo commented Nov 2, 2017

Stable10: #29416

@PVince81 PVince81 merged commit 006e2ec into master Nov 2, 2017
@PVince81 PVince81 deleted the fix-29233 branch November 2, 2017 15:14
@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.

3 participants