46
46
stats.metadata_size,
47
47
IFNULL(stats.row_count, 0) as row_count,
48
48
local.download_size,
49
+ local.downloaded_operations,
49
50
local.total_operations,
50
51
local.downloading
51
52
FROM local_bucket_data local
64
65
0 as metadata_size,
65
66
0 as row_count,
66
67
local.download_size,
68
+ local.downloaded_operations,
67
69
local.total_operations,
68
70
local.downloading
69
71
FROM local_bucket_data local` ;
@@ -136,6 +138,7 @@ export default function SyncDiagnosticsPage() {
136
138
{ field : 'name' , headerName : 'Name' , flex : 2 } ,
137
139
{ field : 'tables' , headerName : 'Table(s)' , flex : 1 , type : 'text' } ,
138
140
{ field : 'row_count' , headerName : 'Row Count' , flex : 1 , type : 'number' } ,
141
+ { field : 'downloaded_operations' , headerName : 'Downloaded Operations' , flex : 1 , type : 'number' } ,
139
142
{ field : 'total_operations' , headerName : 'Total Operations' , flex : 1 , type : 'number' } ,
140
143
{
141
144
field : 'data_size' ,
@@ -172,6 +175,7 @@ export default function SyncDiagnosticsPage() {
172
175
name : r . name ,
173
176
tables : JSON . parse ( r . tables ?? '[]' ) . join ( ', ' ) ,
174
177
row_count : r . row_count ,
178
+ downloaded_operations : r . downloaded_operations ,
175
179
total_operations : r . total_operations ,
176
180
data_size : r . data_size ,
177
181
metadata_size : r . metadata_size ,
@@ -183,6 +187,7 @@ export default function SyncDiagnosticsPage() {
183
187
const totals = {
184
188
buckets : rows . length ,
185
189
row_count : rows . reduce ( ( total , row ) => total + row . row_count , 0 ) ,
190
+ downloaded_operations : rows . reduce ( ( total , row ) => total + row . downloaded_operations , 0 ) ,
186
191
total_operations : rows . reduce ( ( total , row ) => total + row . total_operations , 0 ) ,
187
192
data_size : rows . reduce ( ( total , row ) => total + row . data_size , 0 ) ,
188
193
metadata_size : rows . reduce ( ( total , row ) => total + row . metadata_size , 0 ) ,
@@ -217,6 +222,7 @@ export default function SyncDiagnosticsPage() {
217
222
Number of buckets
218
223
</ TableCell >
219
224
< TableCell component = "th" > Total Rows</ TableCell >
225
+ < TableCell component = "th" > Downloaded Operations</ TableCell >
220
226
< TableCell component = "th" > Total Operations</ TableCell >
221
227
< TableCell component = "th" > Total Data Size</ TableCell >
222
228
< TableCell component = "th" > Total Metadata Size</ TableCell >
@@ -226,6 +232,7 @@ export default function SyncDiagnosticsPage() {
226
232
< TableRow sx = { { '&:last-child td, &:last-child th' : { border : 0 } } } >
227
233
< TableCell align = "right" > { totals . buckets } </ TableCell >
228
234
< TableCell align = "right" > { totals . row_count } </ TableCell >
235
+ < TableCell align = "right" > { totals . downloaded_operations } </ TableCell >
229
236
< TableCell align = "right" > { totals . total_operations } </ TableCell >
230
237
< TableCell align = "right" > { formatBytes ( totals . data_size ) } </ TableCell >
231
238
< TableCell align = "right" > { formatBytes ( totals . metadata_size ) } </ TableCell >
0 commit comments