Fix queries for folders with a huge number of feeds.