Again, there may be discrepancies between what is local and what is in the database. Logic here should not rely on indexes.