File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
tools/diagnostics-app/src/library/powersync Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @powersync/diagnostics-app ' : patch
3+ ---
4+
5+ Fixed bug where Rust client implementation would not update the dynamic schema after sync.
Original file line number Diff line number Diff line change 66 ColumnType ,
77 DBAdapter ,
88 isStreamingSyncCheckpoint ,
9+ isStreamingSyncCheckpointComplete ,
910 isStreamingSyncCheckpointDiff ,
11+ isStreamingSyncCheckpointPartiallyComplete ,
1012 isStreamingSyncData ,
1113 PowerSyncControlCommand ,
1214 SqliteBucketStorage ,
@@ -102,6 +104,12 @@ export class RustClientInterceptor extends SqliteBucketStorage {
102104 } ) ;
103105
104106 await this . schemaManager . updateFromOperations ( batch ) ;
107+ } else if ( isStreamingSyncCheckpointPartiallyComplete ( line ) || isStreamingSyncCheckpointComplete ( line ) ) {
108+ // Refresh schema asynchronously, to allow us to better measure
109+ // performance of initial sync.
110+ setTimeout ( ( ) => {
111+ this . schemaManager . refreshSchema ( this . rdb ) ;
112+ } , 60 ) ;
105113 }
106114 }
107115
You can’t perform that action at this time.
0 commit comments