iwind / rockmongo

RockMongo is a MongoDB administration tool, written in PHP 5.
http://rockmongo.com
Other
1.05k stars 408 forks source link

Very slow on a bunch of large documents #9

Open Redsandro opened 11 years ago

Redsandro commented 11 years ago

I think this is because of color coding. It's the only sense-making reason I can think of.

Even though the documents start out contracted (10 lines of code), having a bunch of large documents can quickly take 10+ seconds per page view, very annoying.

I recommend [and|or]:

1) Option to disable color-coding 2) Option to disable color-coding only for specific databases because for collections of small documents color-coding is really convenient 3) Automatically disable color coding when document is longer than.. 1KB or something. 4) Color-code only the first 10 lines as displayed, only color-code full document when 'expand' is actually clicked. [5) Magic super fast color coding implementation]

Redsandro commented 11 years ago

I am curious why this issue isn't more popular. Am I the only one using larger documents with MongoDB and RockMongo?

iwind commented 11 years ago

1.1.6 will bring

Just specify docs_render="plain", will do the work.

Redsandro commented 11 years ago

Thanks for the update!

Rendering is awesome. But only on small docs where you don't have to wait.

May I suggest (your own implementation of the basic idea of) this pull request? I don't want to switch manually all the time.

E.g.:

Redsandro commented 10 years ago

I made this easy for you :) https://github.com/iwind/rockmongo/pull/58

It works perfectly.