emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#43850: closed (cuirass: inconsistent SQL queries execution time.)


From: GNU bug Tracking System
Subject: bug#43850: closed (cuirass: inconsistent SQL queries execution time.)
Date: Thu, 25 Mar 2021 12:47:02 +0000

Your message dated Thu, 25 Mar 2021 13:46:25 +0100
with message-id <87mtur5rku.fsf@gnu.org>
and subject line Re: bug#43850: cuirass: inconsistent SQL queries execution 
time.
has caused the debbugs.gnu.org bug report #43850,
regarding cuirass: inconsistent SQL queries execution time.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
43850: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43850
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: cuirass: inconsistent SQL queries execution time. Date: Wed, 07 Oct 2020 18:04:52 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Hello,

Over the last few weeks I made sure that all Cuirass SQL queries were
using indexes. As the "Builds" and "Outputs" tables can be really large,
having queries covered by indexes is imperative for consistent queries
duration.

However, I observed that some queries have inconsistent duration.

--8<---------------cut here---------------start------------->8---
2020-10-07T17:59:09 Database worker unresponsive for 5 seconds 
(db-get-builds-max).
2020-10-07T17:59:13 GET /build/3183151/details
2020-10-07T17:59:13 GET /eval/92
2020-10-07T17:59:14 builds request took 3.66e-4 seconds
2020-10-07T17:59:14 Database worker unresponsive for 5 seconds 
(db-get-builds-max).
2020-10-07T17:59:15 GET /eval/13234
2020-10-07T17:59:16 GET /build/3146487/details
2020-10-07T17:59:19 Database worker unresponsive for 5 seconds 
(db-get-builds-max).
--8<---------------cut here---------------end--------------->8---

"db-get-builds-max" query has the following query plan:

--8<---------------cut here---------------start------------->8---
QUERY PLAN
|--SEARCH TABLE Builds USING INDEX Builds_stoptime_id (stoptime=?)
`--SCALAR SUBQUERY 1
   `--SEARCH TABLE Builds USING INDEX Builds_evaluation_index (evaluation=?)
--8<---------------cut here---------------end--------------->8---

so it should always reasonably fast. The log seem to indicate that the
worker running one of those queries is busy for more than 10 seconds
here. My understanding of SQLite WAL mode is that writers should not
block readers. So I don't get why this query can be intermittently so
slow.

Thanks,

Mathieu
-- 
https://othacehe.org



--- End Message ---
--- Begin Message --- Subject: Re: bug#43850: cuirass: inconsistent SQL queries execution time. Date: Thu, 25 Mar 2021 13:46:25 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Closing as this is not any issue anymore since the switch to PostgreSQL.

Mathieu


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]