lazyBoy/migrations/037_file_history_poll_order...

5 lines
257 B
SQL

-- Polling now rotates across current and historical provider/generation
-- scopes within one Computer, rather than filtering to one generation.
CREATE INDEX computer_file_poll_history_order
ON computer_file_poll_scopes(computer_id,last_polled,bot_id);