[INSTRM-1016] improve archiver data selection Created: 19/Jun/20  Updated: 07/Oct/20  Resolved: 07/Oct/20

Status: Done
Project: Instrument control development
Component/s: ics_sps_engineering_Lib_dataQuery
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: arnaud.lefur Assignee: arnaud.lefur
Resolution: Done Votes: 0
Labels: SPS
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File archiverDbPerf.png     PNG File subaru_archiver_q+xfer.png    
Story Points: 2

 Description   

ics_sps_engineering_Lib_dataQuery queries can be optimized to obtain a significant performance, see screenshot attached.
4 queries for the same result, but one is definitely to avoid.



 Comments   
Comment by cloomis [ 09/Sep/20 ]

If the date range query is split from the data query, it all goes much faster, even on dbs with years of data (JHU, say). Screen shot of SQL attached; I'll dig up the underlying code.

Generated at Sat Feb 10 16:31:00 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.