redislabs-training/ru101

Speed up Python scan code

Closed this issue · 1 comments

Note from a student via Discord:

scan_iter in the code samples run painfully slowly. Running the faceted search code can take 5 minutes +. is that normal for such a small sample (referencing cloud redis). it looks looked like it was doing 1 record at a time so i changed to scan_iter( pattern, count=1000) - now it runs in a few seconds