Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3664 search result indexing #3691

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
changelog
  • Loading branch information
michaelabuckley committed Jun 10, 2022
commit 311759e561324e32639fe16e8e6dbe7b6ecc6ae7
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
type: fix
issue: 3664
title: "Reduce database traffic during query caching by using composite PK instead of sequence."
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
import javax.persistence.*;
import java.io.Serializable;

/**
* Table for individual results in a cached search.
*
* We use a composite PK to avoid the traffic of fetching the sequence since we insert 250 at a time.
*/
@Entity
@Table(name = "HFJ_SEARCH_RESULT", uniqueConstraints = {
@UniqueConstraint(name = "HFJ_SEARCH_RESULT_PKEY", columnNames = {"SEARCH_PID", "SEARCH_ORDER"})
Expand Down
Loading