Fills an empty database with the latest data in the WSA/VSA. Will also
update the database schema and/or recreate the database from scratch. By
default, the full date range of non-deprecated data is
synchronised.
Note:
For the detection tables of deep surveys, i.e. UDS and DXS, only
the detections from the deep stacks are synchronised, as these are
the only ones that contribute to source tables. If you specify the
-a/--all option, then all detections are included.
To Do:
-
Due to the way indices are defined this may be faster if we were able
to make the primary keys the real primary keys, so instead of just
querying MFD on multiframeID, do it on the seemingly unnecessary
multiframeID and extNum. However, not sure how to do within a NOT IN
(SELECT attr FROM...) context.
-
Optimise date range updates.
Author:
R.S. Collins
Organization:
WFAU, IfA, University of Edinburgh