Re: Moving to postgresql and some ignorant questions

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Moving to postgresql and some ignorant questions
Дата
Msg-id 87k5rxoq0i.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Moving to postgresql and some ignorant questions  ("Phoenix Kiula" <phoenix.kiula@gmail.com>)
Список pgsql-general
"Phoenix Kiula" <phoenix.kiula@gmail.com> writes:

> There are some cases where I would like to bunch queries into a
> transaction purely for speed purposes, but they're not interdependent
> for integrity. E.g.,

How do you know you need to do this for speed if you haven't run it yet? I
would suggest you build your application around the application needs first,
then later look at how to optimize it.

Remember the two rules of optimization:

1) Don't
2) (for experts only) Don't yet


The only case where you should consider batching together transactions like
that is if you're processing a batch data load of some kind. In that case you
have a large volume of updates and they're all single-threaded. But usually in
that case you want to abort the whole load if you have a problem.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pqlib in c++: PQconnectStart PQconnectPoll
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Select time jump after adding filter; please help me figure out what I'm doing wrong.