Skip to content

Commit

Permalink
Use the presence of cursor_values for fast path
Browse files Browse the repository at this point in the history
If the user presses "Sync" on the UI, we'll still have `use_state=True`, forcing
a slow load.
  • Loading branch information
mildbyte committed Oct 10, 2022
1 parent d48a8e3 commit 5ce3d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splitgraph/hooks/data_source/fdw.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def sync(
repository.object_engine.create_schema(staging_schema)
repository.commit_engines()

if use_state:
if cursor_values:
self._mount_and_copy(
staging_schema,
tables,
Expand Down

0 comments on commit 5ce3d51

Please sign in to comment.