iwind/rockmongo

Very slow on a bunch of large documents

Opened this issue · 4 comments

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]

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

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".

I made this easy for you :)
#58

It works perfectly.