Skip to content

Commit

Permalink
Merge pull request #164 from pulibrary/indexing_pipeline_optimization
Browse files Browse the repository at this point in the history
Speed up Figgy Resources query.
  • Loading branch information
hackartisan authored Oct 24, 2024
2 parents d007c9a + df21b3a commit 44bdb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dpul_collections/indexing_pipeline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ defmodule DpulCollections.IndexingPipeline do
from r in Figgy.Resource,
where:
r.internal_resource != "Event" and r.internal_resource != "PreservationObject" and
((r.updated_at == ^updated_at and r.id > ^id) or r.updated_at > ^updated_at),
(r.updated_at >= ^updated_at and (r.updated_at > ^updated_at or r.id > ^id)),
limit: ^count,
order_by: [asc: r.updated_at, asc: r.id]

Expand Down

0 comments on commit 44bdb51

Please sign in to comment.