mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-16 03:39:04 +02:00
perf: remove actif filter, increase batchSize, exclude Y articles without sales
- Remove actif/suspendu filter that caused wrong stats (893€ CA, 249 units) by incorrectly excluding products with sales. The parallel pagination and bulk ranking fixes are sufficient to handle large suppliers. - Increase getMensuelByArticles and getReferentielByArticles batchSize from 20 to 50, reducing sequential batch iterations by ~2.5x. - Filter gamme Y products with zero 12-month sales from returned rows. Reduces grid size (e.g. S053: 14775→fewer rows) without affecting products that actually sold. Y products with sales are preserved. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
be3a196744
commit
1cd3ade77e
2 files changed
+16
-20
No files matched your search
@@ -326,7 +326,7 @@ export async function getMensuelByArticles(
|
||||
articles: FfArticle[],
|
||||
dateDebut: string,
|
||||
dateFin: string,
|
||||
batchSize = 20
|
||||
batchSize = 50
|
||||
): Promise<Map<string, FfMensuelEntry[]>> {
|
||||
const result = new Map<string, FfMensuelEntry[]>();
|
||||
|
||||
@@ -412,7 +412,7 @@ export interface FfReferentiel {
|
||||
*/
|
||||
export async function getReferentielByArticles(
|
||||
articles: FfArticle[],
|
||||
batchSize = 20
|
||||
batchSize = 50
|
||||
): Promise<Map<string, FfReferentiel>> {
|
||||
const result = new Map<string, FfReferentiel>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user