We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a18d9f commit 6964420Copy full SHA for 6964420
1 file changed
examples/bulk_loading.rb
@@ -30,10 +30,13 @@
30
puts "\nSuccess!"
31
32
# create any indexes *after* loading initial data (skipping for this example)
33
-# puts "Creating index"
34
-# conn.exec("SET maintenance_work_mem = '8GB'")
35
-# conn.exec("SET max_parallel_maintenance_workers = 7")
36
-# conn.exec("CREATE INDEX ON items USING hnsw (embedding vector_cosine_ops)")
+create_index = false
+if create_index
+ puts "Creating index"
+ conn.exec("SET maintenance_work_mem = '8GB'")
37
+ conn.exec("SET max_parallel_maintenance_workers = 7")
38
+ conn.exec("CREATE INDEX ON items USING hnsw (embedding vector_cosine_ops)")
39
+end
40
41
# update planner statistics for good measure
42
conn.exec("ANALYZE items")
0 commit comments