Here a solution is explained on how to encapsulate database specific MongoDBObject
when making a call to a salat DAO method. Now if I use the find
method that returns a SalatMongoCursor
, my code will again be dependent on the specific database. I see Here that changing the cursor to a list is bad for performance. Is there a better way out?
Asked
Active
Viewed 29 times
0
1 Answers
0
Having received no reactions so far to my question, I conclude the answer is "No". Personally, I decided to convert to a List because I will need to traverse it several times later anyway.

Mahdi
- 1,778
- 1
- 21
- 35