mirror of
https://github.com/zyphlar/LanternPowerMonitor.git
synced 2024-03-08 14:07:47 +00:00
Performance improvement for returning energy summaries from DB. Change the way MQTT values are posted. Add a BOM utf-8 char to the BOM csv, yo dawg, bom.
This commit is contained in:
@@ -214,12 +214,7 @@ public class MongoProxy extends AbstractDaoProxy {
|
||||
iter.skip(_offset);
|
||||
if (_count > 0)
|
||||
iter.limit(_count);
|
||||
return CollectionUtils.transform(iter, new ITransformer<Document, DaoEntity>() {
|
||||
@Override
|
||||
public DaoEntity transform(Document _document) {
|
||||
return new DaoEntity(_document);
|
||||
}
|
||||
});
|
||||
return CollectionUtils.transform(iter, DaoEntity::new);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user