Skip to content

Commit 92384f7

Browse files
authored
Merge pull request #209 from powersync-ja/diagnostics-empty-buckets
[diagnostics-app] Include empty buckets in sync diagnostics
2 parents 530ee7d + e78aa48 commit 92384f7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/neat-bottles-tan.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"diagnostics-app": patch
3+
---
4+
5+
Display empty buckets in sync diagnostics

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ SELECT
4343
stats.tables,
4444
stats.data_size,
4545
stats.metadata_size,
46-
stats.row_count,
46+
IFNULL(stats.row_count, 0) as row_count,
4747
local.download_size,
4848
local.total_operations,
4949
local.downloading
5050
FROM local_bucket_data local
51-
JOIN oplog_stats stats ON stats.name = local.id`;
51+
LEFT JOIN oplog_stats stats ON stats.name = local.id`;
5252

5353
const TABLES_QUERY = `
5454
SELECT row_type as name, count() as count, sum(length(data)) as size FROM ps_oplog GROUP BY row_type

0 commit comments

Comments
 (0)