[mob][photos] Use 100 as batchSize for copy

This commit is contained in:
Neeraj Gupta 2024-04-20 15:44:43 +05:30
parent 3e5648dae4
commit 04a381fa51
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ const int jan011981Time = 347155200000000;
const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748 const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
const int galleryLoadEndTime = 9223372036854775807; // 2^63 -1 const int galleryLoadEndTime = 9223372036854775807; // 2^63 -1
const int batchSize = 1000; const int batchSize = 1000;
const int batchSizeCopy = 100;
const photoGridSizeDefault = 4; const photoGridSizeDefault = 4;
const photoGridSizeMin = 2; const photoGridSizeMin = 2;
const photoGridSizeMax = 6; const photoGridSizeMax = 6;

View file

@ -1323,7 +1323,7 @@ class CollectionsService {
required int srcCollectionID, required int srcCollectionID,
}) async { }) async {
_validateCopyInput(dstCollectionID, srcCollectionID, files); _validateCopyInput(dstCollectionID, srcCollectionID, files);
final batchedFiles = files.chunks(batchSize); final batchedFiles = files.chunks(batchSizeCopy);
final params = <String, dynamic>{}; final params = <String, dynamic>{};
params["dstCollectionID"] = dstCollectionID; params["dstCollectionID"] = dstCollectionID;
params["srcCollectionID"] = srcCollectionID; params["srcCollectionID"] = srcCollectionID;