Appender API with nested types #309
Replies: 2 comments
-
Hi @loicalleyne!
Indeed, when using the C API, we recommend using the Internally, go-duckdb also uses Another way to fill these data chunks internally would be to expose an So, to summarize, the
Yes, this is possible. Look at this test case, which appends many different nested types.
I cannot say, I haven't benchmarked this. Hope this helps - :) |
Beta Was this translation helpful? Give feedback.
-
@taniabogatsch I've been busy working on bodkin a helper library for Arrow so I haven't tried the Appender yet; that being said I just tested inserting 836855 rows of data converted into Arrow Records into duckdb with |
Beta Was this translation helpful? Give feedback.
-
Today I saw a post on LinkedIn by an engineer at ShareChat link where they managed to get 20K inserts/sec using a query batcher but estimate that appender could be even faster. The table schema they had was flat, and usually I have to deal with nested data; I've seen it said that there is an 'append data chunk' way of using appender but in go-duckdb that function is not public. Is there a way to use appender with nested data using the existing AppendRow function?
Or is it easier/faster to use the Arrow RegisterView and insert a select from the view?
Beta Was this translation helpful? Give feedback.
All reactions