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
@@ -1,9 +1,9 @@
-- name: ListQueryRequirementValues :many
WITH reqQueries as (
SELECT av.queryId, av.activeVersion, q.type
SELECT av.queryId, av.activeVersion, q.queryType
FROM requiredQueries as rq
JOIN queryCurrentActiveVersions as av on av.queryId = rq.requiredQueryId
JOIN queries as q on q.id = av.queryId
JOIN queries as q on q.queryId = av.queryId
WHERE rq.queryId = @queryId
and isInVersion(@version, rq.addedVersion, rq.removedVersion)
),
@@ -25,7 +25,7 @@ latestVersions AS (
SELECT
r.id,
rq.queryId,
rq.type,
rq.queryType,
r.queryVersion,
r.textEntryId,
r.value,
@@ -39,7 +39,7 @@ latestVersions AS (
and r.queryVersion = rq.activeVersion
and cte.id = r.textEntryId
)
SELECT DISTINCT id, queryId, type, value
SELECT DISTINCT id, queryId, queryType, value
FROM latestVersions
WHERE rowNumber = 1;