Re: Postgresql INSERT speed (how to improve performance)?

Поиск
Список
Период
Сортировка
Искать
От
John DeSoi
Тема
Re: Postgresql INSERT speed (how to improve performance)?
Дата
Msg-id
CBDB6531-EA69-4A15-88C7-C04A570AFBCD@pgedit.com
Ответ на
Список
Дерево обсуждения
Postgresql INSERT speed (how to improve performance)? "Lim Berger" <straightfwd007@gmail.com>
Re: Postgresql INSERT speed (how to improve performance)? Tony Caduto <tony_caduto@amsoftwaredesign.com>
Re: Postgresql INSERT speed (how to improve performance)? Tom Lane <tgl@sss.pgh.pa.us>
Re: Postgresql INSERT speed (how to improve performance)? "Lim Berger" <straightfwd007@gmail.com>
Re: Postgresql INSERT speed (how to improve performance)? "Lim Berger" <straightfwd007@gmail.com>
Re: Postgresql INSERT speed (how to improve performance)? Tom Lane <tgl@sss.pgh.pa.us>
Re: Postgresql INSERT speed (how to improve performance)? John DeSoi <desoi@pgedit.com>
Re: Postgresql INSERT speed (how to improve performance)? Gregory Stark <stark@enterprisedb.com>
Re: Postgresql INSERT speed (how to improve performance)? "Andrej Ricnik-Bay" <andrej.groups@gmail.com>
Re: Postgresql INSERT speed (how to improve performance)? "Lim Berger" <straightfwd007@gmail.com>
Re: Postgresql INSERT speed (how to improve performance)? Tony Caduto <tony_caduto@amsoftwaredesign.com>

On Aug 13, 2007, at 11:54 PM, Lim Berger wrote:

> I am testing through PHP microtime function. The query is administered
> through pg_query() function of PHP. I know there could be some latency
> coming in from the PHP's PG functions' overhead, but not such an order
> of magnitude different from "mysqli_query"!  (I hope -- because this
> is quite a common real-world situation I would think).

You might also try using prepared statements for your inserts (see  
PHP's pg_prepare and pg_execute functions). This will also save time  
you are likely using to escape the inserted strings.



John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

В списке pgsql-general по дате отправления
От: Kuriakose, Cinu Cheriyamoozhiyil
Дата:
От: Josh Trutwin
Дата:
FAQ