Re: Is there a way to limit CPU usage per user

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Is there a way to limit CPU usage per user
Дата
Msg-id b42b73150602081342w6e1add1o1dfb8c32345e1a14@mail.gmail.com
обсуждение исходный текст
Ответ на Is there a way to limit CPU usage per user  (Luki Rustianto <lukirus@gmail.com>)
Ответы Re: Is there a way to limit CPU usage per user  (Scott Marlowe <smarlowe@g2switchworks.com>)
Re: Is there a way to limit CPU usage per user  (Luki Rustianto <lukirus@gmail.com>)
Список pgsql-general
> Is there a way to limit user's CPU resource specially on "SELECT" query ?
>
> I hava a table with a lot of rows inside, if one sloopy DB users do a
> "SELECT * FROM bigtable"
> then CPU resource will go near 99% and this action will surely affect
> the other database performance ...
>
Yes, the answer is not to write the query in the first place :-).  you
can implement cursors, do client side browsing, or other techiniques
to handle this problem more elegantly.

try to follow rule of thumb to return minimal amount of data necessary
to the client.

Merlin

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Create a new database from JDBC?
Следующее
От: Rodolfo Campos
Дата:
Сообщение: Insert into other database