splitgraph / sgr

sgr (command line client for Splitgraph) and the splitgraph Python library
https://www.splitgraph.com
Other
325 stars 17 forks source link

Small hack to avoid flash-of-empty-image #738

Closed mildbyte closed 1 year ago

mildbyte commented 1 year ago

When loading data, we create an image and sometimes can commit it to the DB before the loading ends -- which makes that image latest. To work around this, do a two-phase setup: first, set the image's creation time to 1BC, do the ingestion and, if it succeeds, bump it to now() to make the image latest.