tart / motop

"Top" clone for MongoDB
67 stars 24 forks source link

Wrap long queries #18

Open dandv opened 10 years ago

dandv commented 10 years ago

Some queries are not displayed because they're too large and db.currentOp() doesn't return them. But all other queries are truncated by the right margin of the terminal. Any chance to wrap the query onto multiple lines? Bonus points for pretty-printing it.

hasegeli commented 10 years ago

I designed the tool to be able to see many operations in the same screen. I can be helpful to give more details about them when there is enough space. Though I cannot imagine an easy way to do so.

Explain button pretty-prints the full query. It would be easy to add other one to print it without explain. Do you think it would be useful?