Does Mongo 3 offers a priority feature for queries?
1,010 views
Skip to first unread message
yongzh...@gmail.com
unread,
Jun 25, 2015, 1:21:50 PM6/25/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
Hi all,
Recently I work on performance profiling analysis of Mongodb relative operations in our system. I figured out one major reason that the user experiences a long review page load time is that Mongod work on building collections' indexes for bunch of keys back-end. We would like to provide customers better product experience (quicker response & shorter query latency). I just wonder if Mongo 3.0 offers a priority feature for queries. That is, Mongod periodically scans the waiting tasks/queries and try to respond those ones with high priorities. Actually I think this should be a popular requirements since for most of systems there are always some clients/queries being more important than other clients/queries.
I searched this forum and the most relative one I found is as follow. Any relative development since then? Thanks a lot.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
There is no such feature currently. However, shouldn't you be doing
your index builds off-line (i.e. not on a running live system)? I'm
assuming you're talking about adding an index, not regular inserts and
updates updating indexes, as that's part of the basic write work).
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
Hello Asya,
Building indexes is a part of the analysis and the customers will need indexes right away when they review the results after the analysis complete.
My point is that normally customers have better patience in waiting for analysis execution than waiting for loading review page since the analysis may take a while but they want to see the data soon after they click the button. For example, in my test case, when 5 analyses are running concurrently, the building indexes may take 5*9=45 seconds. When mongod is NOT busy, it take ~10 seconds to load the review page. However, when mongod is busy with building indexes, the customer has to wait for one minute to see the results. The customer may think the system is slow so s/he has to wait for a long time. If mongo provides priority feature for queries and respond this kind of query prior to the index building , the customer may have much better experience and it takes 10 more second for the analysis execution. This extra time is nothing, compared to original 10-30 minute execution time. Thanks a lot.
Best Regards, -Yongzhi
Stephen Steneker
unread,
Jun 25, 2015, 11:07:24 PM6/25/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com, yongzh...@gmail.com
On Friday, 26 June 2015 09:11:43 UTC+10, yongzhi.chen wrote:
Building indexes is a part of the analysis and the customers will need indexes right away when they review the results after the analysis complete.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com, yongzh...@gmail.com
Hello Stephen,
Thank you so much for pointing out this option. I just conducted a test to verify and it seemed that this may solve my issue.
My understanding is that: (1) The cost or disadvantage of background indexes is longer building time and larger index storage size; (2) Those background indexes would be created by the end of the execution and they are functionally identical to those index build in the foreground.