ebmdatalab / openprescribing-data

Seed data for openprescribing
6 stars 2 forks source link

after_import commands should not be run every time #7

Closed sebbacon closed 7 years ago

sebbacon commented 7 years ago

At the moment, after_import scripts are executed every time we run runimporters, whether or not there is any new data imported.

Consider if this is the correct behaviour (at the moment it means materialized views are always refreshed, which is very slow, and in particular not necessary if the script had been interrupted for some reason)

sebbacon commented 7 years ago

The main reason for this issue was to avoid running matviews uncesssarily; I think this is better fixed by making them depend on the prescribing data import per cb437c49a04e4dc0f3d08125110ba325b695926f