artefactual-labs/AIPscan

Consider switching DB to MySQL

mcantelon opened this issue · 2 comments

This is apparently a very simple switch. Might mean a slight tweak to some of our schema (adding limits to VARCHARs where they're not present?).

According to Santi, "creating an index for aip.create_time makes the storage_locations_usage_over_time go from 44s to generate, to 18s".

ALTER TABLE aipscan.aip ADD INDEX create_date_index (create_date);

ALTER TABLE aipscan.file ADD INDEX date_created_index (date_created);

A PR's been created and approved that allows MySQL use.