supabase / pg_replicate

Build Postgres replication apps in Rust
Apache License 2.0
596 stars 22 forks source link

Implement binary search of the latest file when resuming replication #3

Closed imor closed 3 months ago

imor commented 6 months ago

When resuming the replication, we currently find the latest file by calling the ListObjectsV2 api which returns a maximum of 1000 objects. To reduce the number of API calls, implement binary search.

imor commented 3 months ago

N/A anymore because the design has changed.