0

I am using mongodb 2.4.6 and python 2.7 .I have frequent executing queries.Is it possible to save the frequent qaueries results in cache.?

Thanks in advance!

1 Answer 1

1

Yes but you will need to make one, how about memcached or redis?

However as a pre-cautionary note, MongoDB does have its recently used data cached to RAM by the OS already so unless you are doing some really resource intensive aggregation query or you are using the results outside of your working set window you might not actually find that it increases performance all that much.

Sign up to request clarification or add additional context in comments.

3 Comments

Actually i am working on multiple databases with same queries,and my database is going to be huge so how can i do it..?
@Shiva I would cache to memcached
I have referred some memcached docs,but i didnt understand.Can you please give me a simple code to cache a qurey

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.