Search Postgresql Archives

Re: Question about PostgreSQL from Delphi newsgroups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 15, 2007 3:00 PM, Tony Caduto <tony_caduto@xxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
> Someone asked me a question about PostgreSQL on the Delphi newsgroups
> and I was not sure how to answer them:
>
> "Do you know if using PostgreSQL a query or connection can have a
> priority set, so it can run quicker than other queries?
> For example, in a POS system the reporting queries should have lower
> priority than the generated invoices insert queries. "

The answer is Yes, No, and sort of.

It is possible to set different priorities on various backend
processes by means things like renice etc...  There are issues of
priority inversion (look it up on wikipedia) that may or may not
affect you, and changing the priority may or may not help, because in
most OSes process priority does not translate to I/O priority, which
is usually the real underlying issue.

My recommendation is that if you want to have a live fast
transactional database, AND you want to run reports, then you should
something like slony replication and run your reports against the
slave server.  It certainly works well for me.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux