Make chunk size configurable
This commit is contained in:
parent
3412713c5b
commit
3179ed0921
2 changed files with 5 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ defmodule Mix.Tasks.Pleroma.Search.Meilisearch do
|
|||
|
||||
IO.puts("Created indices. Starting to insert posts.")
|
||||
|
||||
chunk_size = 10_000
|
||||
chunk_size = Pleroma.Config.get([Pleroma.Search.Meilisearch, :initial_indexing_chunk_size])
|
||||
|
||||
Pleroma.Repo.transaction(
|
||||
fn ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue