]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Retain index granularity with minimal bloat user/dbs/another_metabib_ingest_fix
authorDan Scott <dscott@laurentian.ca>
Thu, 13 Jun 2013 05:16:23 +0000 (01:16 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 17 Jun 2013 13:22:19 +0000 (09:22 -0400)
commit18f874cdbb624508603ee343ae52d7c43586970c
tree7bc7752d419bfe4e036bd2d666efbeccc608dbe3
parentae942a8e8754ecb3236416ab4e617c7dc4042e2b
Retain index granularity with minimal bloat

The previous approach to reducing index bloat arguably went too far, in
that analytics such as separately catalogued songs for an album were all
simply aggregated together in a single metabib.title_field_entry row,
rather than being added as separated metabib.title_field_entry rows for
each unique value.

To avoid the original problem of exact duplicate rows being inserted, we
now check for an existing matching row before inserting into the index.
A good test record is title "Cello concerto." which results in 1 title
proper row and 4 added entry title rows in metabib.title_field_entry
after this change.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/030.schema.metabib.sql