public static List<T> GetAll<T>(string connectionString, string dbName, string collectionName)
where T : EntityBase
{
var db = GetMongoDatabase(connectionString, dbName);
var collection = db.GetCollection<T>(collectionName);
return collection.FindAll().ToList();
}
uj5u.com熱心網友回復:
先確定這20秒是網路傳輸消耗、取資料消耗各占用多少uj5u.com熱心網友回復:
explain()看看,能利用索引先優化一下么uj5u.com熱心網友回復:
還有,為什么要一次性放這么多資料到list里面,這種是不是該分頁和用游標或者迭代器轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/95175.html
標籤:MongoDB
上一篇:MATLAB+Access insert函式應用問題 Variable fields and insert fields do not match.
