3 ms·
I'm very happy with this compromise. Schema migrations involving tens of millions of keys can be challenging. The KEYS command returns all matching keys, so y
by hakt 13y ago
I'm very happy with this compromise.
Schema migrations involving tens of millions of keys can be challenging. The KEYS command returns all matching keys, so you can roll your own iterator with KEYS AAA* then KEYS AAB* etc. But keys aren't evenly distributed so some result sets are zero and others are still too large.
I've been indexing keys with Redis lists and iterate through the index with LRANGE. That uses extra memory and causes more roundtrip calls.
I can deal with this compromise since SCAN makes Redis much more useful for my applications.