change collection fetch params
This commit is contained in:
parent
60bd918d5e
commit
7cc9923ed9
2 changed files with 7 additions and 5 deletions
5
dist/bundle.es.js
vendored
5
dist/bundle.es.js
vendored
|
@ -4658,7 +4658,7 @@ const getTimestamp = () => {
|
||||||
return Math.floor(Date.now() / 1000);
|
return Math.floor(Date.now() / 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
const FETCH_BATCH_SIZE = 10;
|
const FETCH_BATCH_SIZE = 50;
|
||||||
|
|
||||||
const doLocalCollectionCreate = (name, collectionItems, type, sourceId) => dispatch => {
|
const doLocalCollectionCreate = (name, collectionItems, type, sourceId) => dispatch => {
|
||||||
return dispatch({
|
return dispatch({
|
||||||
|
@ -4765,7 +4765,8 @@ const doFetchItemsInCollections = (resolveItemsOptions, resolveStartedCallback)
|
||||||
batches[i] = lbryProxy.claim_search({
|
batches[i] = lbryProxy.claim_search({
|
||||||
claim_ids: claim.value.claims,
|
claim_ids: claim.value.claims,
|
||||||
page: i + 1,
|
page: i + 1,
|
||||||
page_size: batchSize
|
page_size: batchSize,
|
||||||
|
no_totals: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const itemsInBatches = yield Promise.all(batches);
|
const itemsInBatches = yield Promise.all(batches);
|
||||||
|
|
|
@ -18,7 +18,7 @@ const getTimestamp = () => {
|
||||||
return Math.floor(Date.now() / 1000);
|
return Math.floor(Date.now() / 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
const FETCH_BATCH_SIZE = 10;
|
const FETCH_BATCH_SIZE = 50;
|
||||||
|
|
||||||
export const doLocalCollectionCreate = (
|
export const doLocalCollectionCreate = (
|
||||||
name: string,
|
name: string,
|
||||||
|
@ -165,6 +165,7 @@ export const doFetchItemsInCollections = (
|
||||||
claim_ids: claim.value.claims,
|
claim_ids: claim.value.claims,
|
||||||
page: i + 1,
|
page: i + 1,
|
||||||
page_size: batchSize,
|
page_size: batchSize,
|
||||||
|
no_totals: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const itemsInBatches = await Promise.all(batches);
|
const itemsInBatches = await Promise.all(batches);
|
||||||
|
|
Loading…
Reference in a new issue