Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Performance problems ? witch parameter to change ?: msg#00274

db.maxdb

Subject: RE: Performance problems ? witch parameter to change ?

> -----Message d'origine-----
> De : Schroeder, Alexander [mailto:alexander.schroeder@xxxxxxx]
> Envoyé : vendredi 28 janvier 2005 10:48
> À : Fabrice Bourdel
> Objet : RE: Performance problems ? witch parameter to change ?
>
>
> Hello Fabrice,
>
> please tell how you insert these lines (which interfaces, are
> this single line inserts or batch inserts). Do you insert these
> rows having some 'autocommit' property on?
>
> Regards
> Alexander Schröder
> SAP DB, SAP Labs Berlin
>
> > Also, i think i have also another problem when i am doing
> > lots in insertions
> > on maxdb : i need to insert monthly 25000 to 30000 ligns of
> > data ; each line
> > contains mostly text data, but not more then 10 fields. I
> > take a very long
> > time and the disk while inserting is accessed all the time,
> > maybe a problem
> > with caching ? i searched and saw that MaxDb is waiting for
> > the log to be
> > written to disk ; is the log_io_queue param the only param to
> > shift ? the
> > actual
> > value is 50 pages ; for the example above, i tryed to shift
> > le value to 100
> > pages but the insertion is not quicker. Any suggestions ?

Hello,


thanks for quick response.

I use php 5.0.2, Apache 2.0.52, phpmaxdb (r1.6, the last), maxdb 7.5.0.19
and the version of sqldbc of the release of maxdb (0.19)
Also, i do not autocommit (that's default behevior), i tested that in this
case
ii should make the process 3.6 time longer.
I use also the quickier way to speed the process, with prepared
statement ; il would maybe a bit quicker with a prepared stored proc.

here is for example the script for generating the values of the a_b_c_test
table :

<?php
$link = maxdb_connect('localhost', 'SA', 'SA', 'MASTER');
maxdb_real_query($link, "DELETE FROM A_B_C_TEST");
$stmt = maxdb_prepare($link, 'INSERT INTO A_B_C_TEST(CH2, CH3) VALUES(?,
?)');
$chFrom = ord('A');
$chTo = ord('Z');
maxdb_stmt_bind_param($stmt, 'is', $ch2, $ch3);

$ifrom = microtime(true);
$imax = 10000;
for ($i = 1; $i <=$imax; $i++) {
$ch2 = rand(0,10000);
$ch3 = chr(rand($chFrom, $chTo));
maxdb_stmt_execute($stmt);
}
maxdb_commit($link);
$ito = microtime(true);
$itime = $ito - $ifrom;
echo "Time : ", $itime, "<br />";
echo "Time/s = ", $imax / $itime;

?>


Also, i have no choice, i must use a process that insert lign by lign, in
fact
i have big transformations lign/lign, field/field to do before with php.
I insert normaly a text file (.csv), around 25000-30000 ligns.

Regard


--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo