FIX: Fix ordering of random post embeddings backfill (#965)

* FIX: Fix ordering of random post embeddings backfill

* fix annotations

---------

Co-authored-by: Roman Rizzi <rizziromanalejandro@gmail.com>
This commit is contained in:
Rafael dos Santos Silva 2024-11-27 17:01:54 -03:00 committed by GitHub
parent be05e28679
commit 0d3e6b2726
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,7 @@ module Jobs
.pluck(:id) .pluck(:id)
outdated_post_ids.each_slice(posts_batch_size) do |batch| outdated_post_ids.each_slice(posts_batch_size) do |batch|
vector_rep.gen_bulk_reprensentations(Post.where(id: batch).order("topics.bumped_at DESC")) vector_rep.gen_bulk_reprensentations(Post.where(id: batch))
rebaked += batch.length rebaked += batch.length
end end

View File

@ -172,6 +172,7 @@ end
# updated_at :datetime not null # updated_at :datetime not null
# force_review :boolean default(FALSE), not null # force_review :boolean default(FALSE), not null
# reject_reason :text # reject_reason :text
# potentially_illegal :boolean default(FALSE)
# #
# Indexes # Indexes
# #

View File

@ -229,6 +229,7 @@ end
# updated_at :datetime not null # updated_at :datetime not null
# force_review :boolean default(FALSE), not null # force_review :boolean default(FALSE), not null
# reject_reason :text # reject_reason :text
# potentially_illegal :boolean default(FALSE)
# #
# Indexes # Indexes
# #