Skip to content

Idempotent Updates of Partitions #9796

Answered by dantengsky
haydenflinner asked this question in Q&A
Discussion options

You must be logged in to vote

Dimensional tables

....This is good enough for these small tables, although I wonder if there will be noticeable overhead from doing this daily, or if I should instead pull the table, check if it's different from what i'm about to push, then INSERT normally if new values have been added.

INSERT OVERWRITE is preferred in this case.

Fact tables

Now, for fact tables, like: CREATE TABLE IF NOT EXISTS clicks ( event_id STRING PRIMARY KEY, date STRING, metadata STRING, ts TIMESTAMP ); with 1GB/day inserted.
If I am pulling into databend from some other data source, and realize my copy job failed halfway through,

is COPY INTO <TABLE> being used here?

there is a built-in "idempotent copy" mec…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@haydenflinner
Comment options

@dantengsky
Comment options

Answer selected by haydenflinner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants