Unix Technical Forum

mySQL C API vector binding support?

This is a discussion on mySQL C API vector binding support? within the MySQL forums, part of the Database Server Software category; --> Hello, I have a "slight" problem with the mySQL C API. I want to bind vectors for output/input prepared ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 08:14 AM
The|Godfather
 
Posts: n/a
Default mySQL C API vector binding support?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 08:14 AM
Axel Schwenke
 
Posts: n/a
Default Re: mySQL C API vector binding support?

"The|Godfather" <dragomir.stanchev@gmail.com> wrote:

> 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.

> 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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:16 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com