-- 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);