feat: implement core backend architecture and project management services for the History API
Build and Release / release (push) Successful in 1m33s
Build and Release / release (push) Successful in 1m33s
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
DROP INDEX IF EXISTS idx_geometries_active_project_id_id_desc;
|
||||
DROP INDEX IF EXISTS idx_geometries_active_id_desc;
|
||||
DROP INDEX IF EXISTS idx_entities_active_project_id_id_desc;
|
||||
DROP INDEX IF EXISTS idx_entities_active_id_desc;
|
||||
DROP INDEX IF EXISTS idx_wikis_active_project_id_id_desc;
|
||||
DROP INDEX IF EXISTS idx_wikis_active_id_desc;
|
||||
@@ -0,0 +1,23 @@
|
||||
CREATE INDEX IF NOT EXISTS idx_wikis_active_id_desc
|
||||
ON wikis (id DESC)
|
||||
WHERE is_deleted = false;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_wikis_active_project_id_id_desc
|
||||
ON wikis (project_id, id DESC)
|
||||
WHERE is_deleted = false;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_entities_active_id_desc
|
||||
ON entities (id DESC)
|
||||
WHERE is_deleted = false;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_entities_active_project_id_id_desc
|
||||
ON entities (project_id, id DESC)
|
||||
WHERE is_deleted = false;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_geometries_active_id_desc
|
||||
ON geometries (id DESC)
|
||||
WHERE is_deleted = false;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_geometries_active_project_id_id_desc
|
||||
ON geometries (project_id, id DESC)
|
||||
WHERE is_deleted = false;
|
||||
@@ -91,7 +91,8 @@ WHERE g.is_deleted = false
|
||||
sqlc.narg('has_bound')::boolean = true OR
|
||||
g.bound_with IS NULL
|
||||
)
|
||||
ORDER BY g.id DESC;
|
||||
ORDER BY g.id DESC
|
||||
LIMIT NULLIF(sqlc.arg('limit_count')::int, 0);
|
||||
|
||||
-- name: SearchGeometriesByEntityName :many
|
||||
WITH matched_entities AS (
|
||||
|
||||
Reference in New Issue
Block a user