Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 2adccd2

Browse files
committed
rspec transactions
1 parent 6ad82ac commit 2adccd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/embeddings/schema.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ def store(record, embedding, digest)
263263

264264
def hnsw_search_workaround(limit)
265265
return "", "" if limit > DEFAULT_HNSW_EF_SEARCH
266+
return "SET LOCAL hnsw.ef_search = #{limit * 2};", "" if Rails.env.test?
267+
266268
before_query = <<~SQL
267269
BEGIN;
268270
SET LOCAL hnsw.ef_search = #{limit * 2};

0 commit comments

Comments
 (0)