set probes
This commit is contained in:
@@ -64,6 +64,7 @@ limit
|
||||
$15
|
||||
|
||||
-- SearchRepository.searchSmart
|
||||
begin
|
||||
select
|
||||
"assets".*
|
||||
from
|
||||
@@ -83,8 +84,10 @@ limit
|
||||
$7
|
||||
offset
|
||||
$8
|
||||
rollback
|
||||
|
||||
-- SearchRepository.searchDuplicates
|
||||
begin
|
||||
with
|
||||
"cte" as (
|
||||
select
|
||||
@@ -102,18 +105,20 @@ with
|
||||
and "assets"."id" != $5::uuid
|
||||
and "assets"."stackId" is null
|
||||
order by
|
||||
smart_search.embedding <=> $6
|
||||
"distance"
|
||||
limit
|
||||
$7
|
||||
$6
|
||||
)
|
||||
select
|
||||
*
|
||||
from
|
||||
"cte"
|
||||
where
|
||||
"cte"."distance" <= $8
|
||||
"cte"."distance" <= $7
|
||||
rollback
|
||||
|
||||
-- SearchRepository.searchFaces
|
||||
begin
|
||||
with
|
||||
"cte" as (
|
||||
select
|
||||
@@ -129,16 +134,17 @@ with
|
||||
"assets"."ownerId" = any ($2::uuid[])
|
||||
and "assets"."deletedAt" is null
|
||||
order by
|
||||
face_search.embedding <=> $3
|
||||
"distance"
|
||||
limit
|
||||
$4
|
||||
$3
|
||||
)
|
||||
select
|
||||
*
|
||||
from
|
||||
"cte"
|
||||
where
|
||||
"cte"."distance" <= $5
|
||||
"cte"."distance" <= $4
|
||||
commit
|
||||
|
||||
-- SearchRepository.searchPlaces
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user