feat: Implement the sync protocol (#54)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
parent
83fbef8d2c
commit
f85239c3a4
2 changed files with 3031 additions and 306 deletions
|
|
@ -11,7 +11,7 @@ dependencies:
|
|||
benchmark_harness: ^2.4.0
|
||||
intl: ^0.20.2
|
||||
path: ^1.9.1
|
||||
serverpod_database: 3.5.0-beta.6
|
||||
serverpod_database: 3.5.0-beta.9
|
||||
serverpod_offline_sync_server:
|
||||
path: ../packages/serverpod_offline_sync_server
|
||||
serverpod_offline_sync_test_client:
|
||||
|
|
|
|||
|
|
@ -185,8 +185,6 @@ class TypesTableBenchmark extends AsyncBenchmarkBase {
|
|||
|
||||
Future<void> _bootstrapDatabase() async {
|
||||
await clearUserTables(_plainSession);
|
||||
CrdtUserManager.clearCache();
|
||||
HlcManager.reset();
|
||||
final wrapped = CrdtDatabaseSession.wraps(
|
||||
_plainSession,
|
||||
syncTables: benchmarkSyncTables,
|
||||
|
|
@ -274,8 +272,6 @@ class TypesTableBenchmark extends AsyncBenchmarkBase {
|
|||
_seededRows = [];
|
||||
await clearUserTables(_plainSession);
|
||||
await _plainSession.db.unsafeExecute('VACUUM');
|
||||
CrdtUserManager.clearCache();
|
||||
HlcManager.reset();
|
||||
final wrapped = CrdtDatabaseSession.wraps(
|
||||
_plainSession,
|
||||
syncTables: benchmarkSyncTables,
|
||||
|
|
|
|||
Loading…
Reference in a new issue