4646 stats.metadata_size,
4747 IFNULL(stats.row_count, 0) as row_count,
4848 local.download_size,
49+ local.downloaded_operations,
4950 local.total_operations,
5051 local.downloading
5152FROM local_bucket_data local
6465 0 as metadata_size,
6566 0 as row_count,
6667 local.download_size,
68+ local.downloaded_operations,
6769 local.total_operations,
6870 local.downloading
6971FROM local_bucket_data local` ;
@@ -136,6 +138,7 @@ export default function SyncDiagnosticsPage() {
136138 { field : 'name' , headerName : 'Name' , flex : 2 } ,
137139 { field : 'tables' , headerName : 'Table(s)' , flex : 1 , type : 'text' } ,
138140 { field : 'row_count' , headerName : 'Row Count' , flex : 1 , type : 'number' } ,
141+ { field : 'downloaded_operations' , headerName : 'Downloaded Operations' , flex : 1 , type : 'number' } ,
139142 { field : 'total_operations' , headerName : 'Total Operations' , flex : 1 , type : 'number' } ,
140143 {
141144 field : 'data_size' ,
@@ -172,6 +175,7 @@ export default function SyncDiagnosticsPage() {
172175 name : r . name ,
173176 tables : JSON . parse ( r . tables ?? '[]' ) . join ( ', ' ) ,
174177 row_count : r . row_count ,
178+ downloaded_operations : r . downloaded_operations ,
175179 total_operations : r . total_operations ,
176180 data_size : r . data_size ,
177181 metadata_size : r . metadata_size ,
@@ -183,6 +187,7 @@ export default function SyncDiagnosticsPage() {
183187 const totals = {
184188 buckets : rows . length ,
185189 row_count : rows . reduce ( ( total , row ) => total + row . row_count , 0 ) ,
190+ downloaded_operations : rows . reduce ( ( total , row ) => total + row . downloaded_operations , 0 ) ,
186191 total_operations : rows . reduce ( ( total , row ) => total + row . total_operations , 0 ) ,
187192 data_size : rows . reduce ( ( total , row ) => total + row . data_size , 0 ) ,
188193 metadata_size : rows . reduce ( ( total , row ) => total + row . metadata_size , 0 ) ,
@@ -217,6 +222,7 @@ export default function SyncDiagnosticsPage() {
217222 Number of buckets
218223 </ TableCell >
219224 < TableCell component = "th" > Total Rows</ TableCell >
225+ < TableCell component = "th" > Downloaded Operations</ TableCell >
220226 < TableCell component = "th" > Total Operations</ TableCell >
221227 < TableCell component = "th" > Total Data Size</ TableCell >
222228 < TableCell component = "th" > Total Metadata Size</ TableCell >
@@ -226,6 +232,7 @@ export default function SyncDiagnosticsPage() {
226232 < TableRow sx = { { '&:last-child td, &:last-child th' : { border : 0 } } } >
227233 < TableCell align = "right" > { totals . buckets } </ TableCell >
228234 < TableCell align = "right" > { totals . row_count } </ TableCell >
235+ < TableCell align = "right" > { totals . downloaded_operations } </ TableCell >
229236 < TableCell align = "right" > { totals . total_operations } </ TableCell >
230237 < TableCell align = "right" > { formatBytes ( totals . data_size ) } </ TableCell >
231238 < TableCell align = "right" > { formatBytes ( totals . metadata_size ) } </ TableCell >
0 commit comments