bolshakov / stoplight-admin

A simple administration interface for the stoplight gem.
http://bolshakov.github.io/stoplight-admin
MIT License
18 stars 18 forks source link

Very slow when connecting to a Redis store with a lot of keys #6

Closed camdez closed 10 years ago

camdez commented 10 years ago

On a Redis store with 77k keys and zero stoplights, each index page load takes almost 4 seconds. This is all attributable to Stoplight.data_store.names (which uses scan_each).

The following PR should fix this issue: https://github.com/orgsync/stoplight/pull/18