• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alex Bilbie's MongoDB Library V2 : Want to cache query results.

Hey Guys,

This is the first app, I will be building. I am going to be using a user's information throughout the app controllers and views. Looking to limit the amount of request but not sure what is the best method to do this. Thought about SESSIONS, also MemCache sounds like a good solution, but I'm afraid I have no idea how to use it. Since this is my first app, I'm not sure what would be the best way to optimize this aspect of my app.

Alex Bilbie's MongoDB Library V2

Have you encountered any issues with performance yet?

I'm just wonder, since MongoDB seems to be VERY light on my system, compared to the MySQL I'm now converting from.

I actually didn't use the MemCache with calls to the MongoDB. The MongoDB returns were happening a lot faster than MemCache. I'm sure MemCache would work out best to return 1 item that many are trying to access. I'm not to great with caching patterns or theory, just yet. But doing a quick benchmark the MongoDB query was returning a lot faster. Then again I was using MemCachier and I'm using a third party MongoDB server not local.

aha, my site is using Varnish at the time but I'm getting annoyed with it
(I'm not the person that set it up so I can't tweek it),
and I only need it once in a blue moon.

How are you benchmarking by the way?

Just used some of the methods described here; http://ellislab.com/codeigniter/user-gui...hmark.html

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.