dbTalk Databases Forums  

mySQL C API vector binding support?

comp.databases.mysql comp.databases.mysql


Discuss mySQL C API vector binding support? in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
The|Godfather
 
Posts: n/a

Default mySQL C API vector binding support? - 09-25-2006 , 02:24 AM






Hello,
I have a "slight" problem with the mySQL C API. I want to bind vectors
for output/input prepared statements. However, the C API does NOT
support such data binding. Is there ANY other way to do a
bulk-INSERT/DELETE/UPDATE or bulk-SELECT in mySQL C API? I mean, one
can do it with a loop, but obiously the goal is to have a higher
performance.I tried it with a plain-old loop, but it is still slow.
Oracle supports such feature and it is considerably faster than the
usual loop-Insert (appr. 100 times faster for big queries) ! ! !
Please, advise.

Thanx.

Regards,

Dragomir Stanchev


Reply With Quote
  #2  
Old   
Axel Schwenke
 
Posts: n/a

Default Re: mySQL C API vector binding support? - 09-25-2006 , 03:22 AM






"The|Godfather" <dragomir.stanchev (AT) gmail (DOT) com> wrote:

Quote:
I have a "slight" problem with the mySQL C API. I want to bind vectors
for output/input prepared statements. However, the C API does NOT
support such data binding.
Right. This extension of the PS API is already on the TODO list.

Quote:
Is there ANY other way to do a
bulk-INSERT/DELETE/UPDATE or bulk-SELECT in mySQL C API? I mean, one
can do it with a loop, but obiously the goal is to have a higher
performance. I tried it with a plain-old loop, but it is still slow.
I doubt the client API being the reason for slow bulk loading. How did
you come to this conclusion?

The fastest method for bulk loading is LOAD DATA INFILE. Multi value
INSERT (non-prepared) and single value INSERT (prepared) are
approximately equally fast.

For more tips regarding INSERT performance, please consult the manual:
http://dev.mysql.com/doc/refman/5.0/...ert-speed.html


XL
--
Axel Schwenke, Senior Software Developer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.