Skip to content

entities: raise list/filter row cap 1000 → 5000 (Base44 parity); v0.2.0-next.7 - #6

Merged
HomemadeToast57 merged 1 commit into
mainfrom
jack/entities-row-limit-next7
Jul 16, 2026
Merged

HomemadeToast57 merged 1 commit into
mainfrom
jack/entities-row-limit-next7

Conversation

@HomemadeToast57

Copy link
Copy Markdown
Collaborator

What

list/filter still page (50 rows by default), but the per-call ceiling was 1000 while Base44's is 5000 — so a Base44-modeled or migrated app silently truncated between 1000–5000 rows with no signal.

  • Raise MAX_LIMIT 1000 → 5000 (Base44 parity).
  • An over-cap limit now throws instead of silently clamping, so over-large reads fail loudly rather than returning a partial result the caller mistakes for the whole set.
  • Page larger tables with limit + skip.

Why loud instead of silent

The silent 1000 clamp was the actual bug behind "my data looks cut off." Throwing on limit > 5000 keeps the safety ceiling (unbounded reads over the HTTP/PostgREST data plane are a real payload risk) without the silent-truncation footgun.

Notes

  • updateMany/deleteMany still act on every matching row regardless of page size — unchanged, but now documented in the README so the read-caps/writes-don't asymmetry is explicit.
  • Tests updated: default-50, allow-5000, throw-on-5001-before-network, filter defaults to 50.
  • Version bumped to 0.2.0-next.7 → publishes to the next (canary) channel on release, invisible to latest.
  • Paired with a bool-repo change that teaches the app-builder AI these limits in the entities system prompt.

🤖 Generated with Claude Code

….0-next.7

list/filter still page (50 by default) but the per-call ceiling was 1000 while
Base44's is 5000, so a Base44-modeled app silently truncated between 1000–5000
rows. Match 5000, and THROW on an over-cap limit instead of silently clamping —
over-large reads now fail loudly rather than returning a partial result the
caller mistakes for the whole set. Page larger tables with limit + skip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@HomemadeToast57
HomemadeToast57 merged commit 0be0d7d into main Jul 16, 2026
3 checks passed
@HomemadeToast57
HomemadeToast57 deleted the jack/entities-row-limit-next7 branch July 16, 2026 19:39
max-bader added a commit that referenced this pull request Jul 16, 2026
…oid collision with #6)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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