Skip to content

Commit

Permalink
CyberBuddy - Backport optim. (bigger chunks size)
Browse files Browse the repository at this point in the history
  • Loading branch information
csavelief committed Sep 24, 2024
1 parent 3181d70 commit 5b634a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Modules/CyberBuddy/Jobs/DeleteEmbeddedChunks.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handle()
$collection->chunks()
->where('is_embedded', true)
->where('is_deleted', true)
->chunk(100, function ($chunks) use ($collection) {
->chunk(500, function ($chunks) use ($collection) {

$uids = [];

Expand Down
2 changes: 1 addition & 1 deletion app/Modules/CyberBuddy/Jobs/EmbedChunks.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function handle()
$collection->chunks()
->where('is_embedded', false)
->where('is_deleted', false)
->chunk(100, function ($chunks) use ($collection) {
->chunk(500, function ($chunks) use ($collection) {

$chunkz = [];

Expand Down

0 comments on commit 5b634a2

Please sign in to comment.