syed commented on a change in pull request #3282: [WIP DO NOT MERGE] Fix slow vm creation when large sf snapshot count URL: https://github.com/apache/cloudstack/pull/3282#discussion_r278606436
########## File path: engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/SnapshotDataStoreDao.java ########## @@ -30,6 +30,8 @@ List<SnapshotDataStoreVO> listByStoreId(long id, DataStoreRole role); + List<SnapshotDataStoreVO> listByStoreIdInReadyState(long id); Review comment: Can you make this a generic function `listByStoreIdAndState` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services