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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user