Merged in feature/parallellogqueries (pull request #132)

Testing Tweaks

* parallel

* slowestquery

* split

* cleanup

* health

* dynamiccores

* go

* profile

* timeout

* commitmychanges

* taskfile

* sqlcheckstart

* client

* cost

* ctxtimeout
This commit is contained in:
Michael McGuinness
2025-05-05 09:31:21 +00:00
parent 40061ee2e9
commit efe87321b2
76 changed files with 1238 additions and 1495 deletions
+4 -4
View File
@@ -8,12 +8,12 @@ SELECT id FROM currentTextEntries WHERE cleanId = @cleanEntryId and hash = @hash
-- name: GetTextractOutputCurrentPart :one
WITH client as (
select id from clients where id = @clientId
select clientId from clients where clientId = @clientId
),
parts as (
SELECT extract.part
FROM client as c
JOIN documents as docs on docs.clientId = c.id
JOIN documents as docs on docs.clientId = c.clientId
JOIN documentCleans as clean on docs.id = clean.documentId
JOIN documentTextExtractions as extract
on extract.cleanId = clean.id
@@ -31,12 +31,12 @@ GROUP BY p.part;
-- name: GetTextOutCurrentPart :one
WITH client as (
select id from clients where id = @clientId
select clientId from clients where clientId = @clientId
),
parts as (
SELECT extract.part
FROM client as c
JOIN documents as docs on docs.clientId = c.id
JOIN documents as docs on docs.clientId = c.clientId
JOIN documentCleans as clean on docs.id = clean.documentId
JOIN documentTextExtractions extract ON extract.cleanId = clean.id
WHERE date(extract.createdAt) = date(@queryDate)