A week ago, C# driver version 1.4 released. And since this version, MongoDB C# driver supports LINQ totally!
CSharp Driver LINQ Tutorial
Showing posts with label MongoDB. Show all posts
Showing posts with label MongoDB. Show all posts
Thursday, April 5, 2012
Saturday, November 26, 2011
Tips for MongoDB cache store and assets on Rails 3.1
(continued from phosphorescence: How to use MongoDB as model, session store and cache store on Rails3)
So we should configure to cache page caches, action caches and fragment caches, and not to cache assets at all. Referring these two sites(1 2), we can do it by editing config/environments/production.rb like below:
MongoDB cache store does not accept binary cache
Rails3.1's cache feature caches all – page caches, action caches, fragment caches and caches for files called assets(JavaScripts, stylesheets and images). All these are cached in default. But MondoDB cache store we have chosen in previous article is only supporting to cache text files. In other words, MongoDB cache store accepts JavaScripts and stylesheets, but does not accept images.So we should configure to cache page caches, action caches and fragment caches, and not to cache assets at all. Referring these two sites(1 2), we can do it by editing config/environments/production.rb like below:
require 'rack/cache'
........
# Prevent caching assets
config.middleware.insert_before Rack::Cache, ::ActionDispatch::Static, 'public', config.static_cache_control
........
Thursday, November 24, 2011
How to use MongoDB as model, session store and cache store on Rails3
When we use rails3 as out-of-the-box, we implicitly choose ActiveRecord for model, Cookie for session store and on-memory for cache store. But we can choose MongoDB for all of them. I start to explain these ways one by one.
Subscribe to:
Posts (Atom)