This project has moved and is read-only. For the latest updates, please go here.

MongoRepository: static or not?

Jan 28, 2014 at 10:03 AM
Edited Jan 30, 2014 at 8:32 AM
Hi guys,

I wonder, in a big Web Project, is it better to keep an instance of MongoRepository static or is it better to create a new one each time we want to work with it?

What is the difference in memory and speed performance in both cases?