Very slow on a bunch of large documents
Opened this issue · 4 comments
Redsandro commented
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]:
- Option to disable color-coding
- Option to disable color-coding only for specific databases because for collections of small documents color-coding is really convenient
- Automatically disable color coding when document is longer than.. 1KB or something.
- 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
I am curious why this issue isn't more popular. Am I the only one using larger documents with MongoDB and RockMongo?
iwind commented
1.1.6 will bring
- docs_nature_order: http://rockmongo.com/wiki/configuration?lang=en_us#%23%23%23%23docs_nature_order%0D
- docs_render: http://rockmongo.com/wiki/configuration?lang=en_us#%23%23%23%23docs_render%0D
Just specify docs_render="plain", will do the work.
Redsandro commented
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.:
docs_render="mixed"
- If document is smaller than [certain size]
- Do awesome document rendering "default".
- Otherwise
- Do delay skipping simple rendering "plain".
- If document is smaller than [certain size]