All-circs DB view could be leaner for real-time access
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Evergreen circa 2.12
Primarily as a result of bug #1497335, aged circulation data is now exposed to the staff client (e.g. copy status interface). The data is exposed through the action.
I propose a leaner form of the view that only returns data living on the action.circulation and action.
CREATE OR REPLACE VIEW action.
SELECT * FROM action.circulation UNION ALL
SELECT
id,
NULL AS usr,
xact_start,
-- list remaining columns that are shared by both tables
FROM action.
(Alternate VIEW name suggestions welcome)
This view would be used instead of action.
The goal is to reduce the effort required on the DB to load aged circ objects, while allowing the caller to flesh the copy data as needed. In cases where anonymized user data is required, then action.
description: | updated |
Changed in evergreen: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
assignee: | nobody → Galen Charlton (gmc) |
Changed in evergreen: | |
assignee: | Galen Charlton (gmc) → Mike Rylander (mrylander) |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
A quick glance suggests the _slim view could also be used in rating. percent_ time_circulatin g().