Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Very slow on a bunch of large documents #9

Open
Redsandro opened this issue Dec 4, 2012 · 4 comments
Open

Very slow on a bunch of large documents #9

Redsandro opened this issue Dec 4, 2012 · 4 comments

Comments

@Redsandro
Copy link
Contributor

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
Copy link
Contributor Author

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

@iwind
Copy link
Owner

iwind commented Jun 27, 2013

1.1.6 will bring

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

@Redsandro
Copy link
Contributor Author

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

@Redsandro
Copy link
Contributor Author

I made this easy for you :)
#58

It works perfectly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants