Search Postgresql Archives

Re: Query running for 12 hours

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

 



On 05/30/2018 07:00 AM, Melvin Davidson wrote:




T*wo things:
*
*From your explain, it looks like you need an index on this_.tarih, since it is doing a sequential scan when it should be using an index.*
*
*
*Also, your main problem is that when you have two exact same queries executing at the same time, they will cause contention in*
*the disk, and neither one will make much progress.

I am having a hard time seeing how two SELECT queries that on average take ~6 secs each can stay in contention for 12+ hours, especially with:

waiting          | f

*

--
*Melvin Davidson**
Maj. Database & Exploration Specialist**
Universe Exploration Command – UXC***
Employment by invitation only!


--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx




[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