Skip to content

Storage calculations - #930

Open
fogelito wants to merge 2 commits into
mainfrom
storage-calc
Open

Storage calculations#930
fogelito wants to merge 2 commits into
mainfrom
storage-calc

Conversation

@fogelito

@fogelito fogelito commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@fogelito, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 57 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f93faf93-c075-4274-a744-4d612671b86b

📥 Commits

Reviewing files that changed from the base of the PR and between 69e6cb5 and e9d3b14.

📒 Files selected for processing (1)
  • src/Database/Adapter/MariaDB.php
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch storage-calc

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR reduces collection-size calculation to one database round trip while preserving both the collection and permissions-table measurements.

  • Combines the two INFORMATION_SCHEMA.TABLES queries with UNION ALL.
  • Casts the aggregate result to the declared integer return type.

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The combined query preserves the original schema and table-name filters, includes both table sizes, and operates correctly with the adapter’s explicitly enabled emulated PDO prepares.

Important Files Changed

Filename Overview
src/Database/Adapter/MariaDB.php Consolidates collection and permissions-table size queries into one aggregate statement without introducing a current functional defect.

Reviews (1): Last reviewed commit: "throw" | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant