bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 166 forks source link

Add paging for collections #199

Open nodesocket opened 9 years ago

nodesocket commented 9 years ago

We have over two thousand collections in one database, and loading all the collections nearly causes the browser to lock-up.

bobthecow commented 9 years ago

Ha! Fair enough. I'll see what I can do :)

bobthecow commented 9 years ago

There's probably a similar problem with lots of databases, as well.

nodesocket commented 9 years ago

Would be an awesome bonus to be able to search for collections as well.

bobthecow commented 9 years ago

Agreed. I've generally had a pretty manageable number of databases and collections, so I've never had to scratch that particular itch. But I can definitely see where it'd be useful.

nodesocket commented 9 years ago

@bobthecow hey Justin. Any progress on paging for collections?

bobthecow commented 9 years ago

I haven't had a chance to work on this yet. As a workaround, if you build a version of genghis that doesn't pull collection stats you'll probably mitigate most of the issues (other than searchability, of course).

For PHP, comment out this line:

https://github.com/bobthecow/genghis/blob/master/src/php/Genghis/Models/Collection.php#L259

For Ruby, comment out this line:

https://github.com/bobthecow/genghis/blob/master/src/rb/genghis/models/collection.rb#L114

… everything should still work, other than the collection stats popup, but it should also be a lot faster with that many collections.