Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reloads Entire Sheet Each Load #10

Open
bakervin opened this issue Mar 18, 2020 · 1 comment
Open

Reloads Entire Sheet Each Load #10

bakervin opened this issue Mar 18, 2020 · 1 comment

Comments

@bakervin
Copy link

After setting up the integration with Stitch, I have found that every time the data is loaded into the warehouse, every single row is re-imported during the process. This is going to quickly increase the monthly row count for the integration. Is there a way to add only the new rows during each import?

@asaf-erlich
Copy link
Contributor

After doing some preliminary research there are 3 realistic options because unfortunately google sheets api does not provide any way to know which rows / cells have been updated (there's no metadata on what timestamp it was updated):

  1. Stitch adds an onEdit trigger to add a Note to the corresponding cell indicating a modified timestamp or similar metadata. It would also require appropriate permissions and good documentation for customers to explain this. It's more work to develop but it's my favorite customer experience.
  2. Saving an old version of the sheet when sync is done in the state and comparing the old and new google sheets to create a diff and then only emitting updated rows. If space is an issue then saving just a hash per row is also an option.
  3. Providing the customer an option to set a custom replication key and requiring work on their part to include in that column a valid timestamp when the row was updated. This is the least amount of development work, but puts a burden on the user.

The work needs to be prioritized either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants