Skip to content

Commit c59ba20

Browse files
committed
fix: bucket naming
1 parent 700175b commit c59ba20

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

tools/diagnostics-app/src/app/views/sync-diagnostics.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,11 @@ export default function SyncDiagnosticsPage() {
295295
</span>
296296
</TooltipTrigger>
297297
<TooltipContent className="max-w-92">
298-
Two separate limits apply <strong>bucket count</strong> and{' '}
299-
<strong>parameter query results</strong> (both PSYNC_S2305, default{' '}
300-
{DEFAULT_SYNC_LIMIT.toLocaleString()} each):
298+
Two separate limits apply (both PSYNC_S2305, default {DEFAULT_SYNC_LIMIT.toLocaleString()}{' '}
299+
each): <strong>bucket count</strong> and <strong>parameter query results</strong>.
301300
<div className="mt-2">
302-
Global buckets count only toward bucket count. Parameterized buckets count toward both, but
303-
are de-duplicated client-side (server's parameter result count may be higher).
301+
Unpartitioned buckets count only toward bucket count; parameterized buckets count toward both, but
302+
are de-duplicated client-side, so the server's parameter result count may be higher.
304303
</div>
305304
</TooltipContent>
306305
</Tooltip>
@@ -330,7 +329,7 @@ export default function SyncDiagnosticsPage() {
330329
</span>
331330
<div className="text-muted-foreground text-xs font-normal mt-0.5">
332331
{totals.parameterized_buckets.toLocaleString()} parameterized,{' '}
333-
{(totals.buckets - totals.parameterized_buckets).toLocaleString()} global
332+
{(totals.buckets - totals.parameterized_buckets).toLocaleString()} unpartitioned
334333
</div>
335334
</TableCell>
336335
<TableCell className="text-right">{totals.row_count.toLocaleString()}</TableCell>
@@ -361,7 +360,7 @@ export default function SyncDiagnosticsPage() {
361360
</span>
362361
<div className="text-muted-foreground text-xs font-normal mt-0.5">
363362
{totals.parameterized_buckets.toLocaleString()} parameterized,{' '}
364-
{(totals.buckets - totals.parameterized_buckets).toLocaleString()} global
363+
{(totals.buckets - totals.parameterized_buckets).toLocaleString()} unpartitioned
365364
</div>
366365
</div>
367366
</div>
@@ -500,9 +499,9 @@ export default function SyncDiagnosticsPage() {
500499
{totals.buckets >= 900 ? 'Critical: ' : 'Warning: '}
501500
</span>
502501
{totals.buckets.toLocaleString()} of {DEFAULT_SYNC_LIMIT.toLocaleString()} buckets used (PSYNC_S2305,
503-
default limit). {totals.parameterized_buckets.toLocaleString()} are parameterized - at least that many
504-
parameter query results on the server. Review your sync rules to reduce buckets and parameter query
505-
results for this user.{' '}
502+
default limit). {totals.parameterized_buckets.toLocaleString()} are parameterized at least that many
503+
parameter query results on the server, which has a separate limit of the same default. Review your sync
504+
rules to reduce buckets and parameter query results for this user.{' '}
506505
<a
507506
href="https://docs.powersync.com/sync/rules/parameter-queries"
508507
target="_blank"

0 commit comments

Comments
 (0)