Concretely, is it worth it to add an index to a query that scans the table of a mysql database, even if that index would only be used once a month?
For example, having a users a table and then querying for all the users of a certain type.
EXPLAIN SELECT type FROM users WHERE type in (1,3);
+----+-------------+------------------+------+---------------+------+---------+------+--------+-------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+------------------+------+---------------+------+---------+------+--------+-------------+
| 1 | SIMPLE | users | ALL | NULL | NULL | NULL | NULL | 1000685 | Using where |
+----+-------------+------------------+------+---------------+------+---------+------+--------+-------------+