Using multi-row inserts

Moderator: NorbertKrupa

Post Reply
NorbertKrupa
GURU
GURU
Posts: 527
Joined: Tue Oct 22, 2013 9:36 pm
Location: Chicago, IL
Contact:

Using multi-row inserts

Post by NorbertKrupa » Wed Mar 12, 2014 5:50 pm

Not sure how to arrange the question, but I'm basically curious about the internals work of a multi-row insert. By multi-row I mean:

Code: Select all

INSERT INTO schema.object (col1, col2)
SELECT 'a', 'b'
UNION ALL
SELECT 'c', 'd'
...
For one reason or another an app has to insert row-by-row. Just using INSERT creates high overhead. When you introduce a multi-row insert like above, what is different in the loading process? Should the insert be run with /*+DIRECT*/ ? Is there a limit to how much data can be passed in with a multi-row INSERT?
Checkout vertica.tips for more Vertica resources.

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Using multi-row inserts

Post by id10t » Wed Mar 12, 2014 6:57 pm

Hi!

[DELETED]
Last edited by id10t on Fri May 08, 2015 4:29 pm, edited 1 time in total.

NorbertKrupa
GURU
GURU
Posts: 527
Joined: Tue Oct 22, 2013 9:36 pm
Location: Chicago, IL
Contact:

Re: Using multi-row inserts

Post by NorbertKrupa » Wed Mar 12, 2014 7:30 pm

Hmm, never even crossed my mind. I'll need to check it out! Thanks, sKwa!!
Checkout vertica.tips for more Vertica resources.

Post Reply

Return to “Vertica Data Load”