[mob][photos] Use 100 as batchSize for copy
This commit is contained in:
parent
3e5648dae4
commit
04a381fa51
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue