Re: PLEASE GOD HELP US!

Поиск
Список
Период
Сортировка
От Tsirkin Evgeny
Тема Re: PLEASE GOD HELP US!
Дата
Msg-id Pine.LNX.4.58.0410041657480.27241@p-roman.jct.ac.il
обсуждение исходный текст
Ответ на Re: PLEASE GOD HELP US!  (Tsirkin Evgeny <tsurkin@mail.jct.ac.il>)
Список pgsql-admin
it sometimes happens that mysql is faster .obviosly  you have a case
when you have to try force the query to use indexes .
here are some not nice and trivial solutions:

[1] add another column that marks the rows that are in the upper 25
now, set up trigger to update the field .that would be VERY fast
(probably much more faster then mySql or any design in any db).

[2] add a column that inserts a serial  number of every row
,set a trigger to update it on insert now use the max() to find
the latest post and < max()-25 to find the others.

I can suggest more ,but you got the idea.
I understand that this complicates things and the design is less
simple/nice ,but it should speed it up.
Hope it helps.
sorry for english .
--
Evgeny.

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

Предыдущее
От: Michael Long
Дата:
Сообщение: Re: Users and multiple server environment
Следующее
От: Tomaž Borštnar
Дата:
Сообщение: postgresql 8 in jail - LOG: could not create socket for statistics collector: Protocol not supported