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

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Postgresql INSERT speed (how to improve performance)?
Дата
Msg-id
10256.1187064807@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
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>
"Lim Berger"  writes:
>> Thanks Tom. But on a newly minted table, sure, the performance would
>> be great. My table now has about 3 million rows (both in MySQL and
>> PG).

Well, INSERT speed is really not very dependent on table size (else I'd
have inserted a few zillion rows before timing it).  Personally I rather
like Tony's theory that you've gotten confused about what the timing
units are.

> Btw, the query is as simple as:

> INSERT INTO cachedstats
>     (id, prof_name, notes, inform_prof_on_change)
> VALUES
>     (3190087, 'Lim Berger', '.....text of about 1000 chars', 'Y');

These are the sorts of details that you can't leave out if you want
an intelligent response.

> I am testing through PHP microtime function.

Well, that brings up a whole host of questions, starting with whether
the PHP DB adapter you're using is any good.  Can you replicate similar
timings if you feed the same query into plain psql?

			regards, tom lane
В списке pgsql-general по дате отправления
От: Lim Berger
Дата:
От: Gregory Stark
Дата:
FAQ