diff --git a/Refactor_Plan.md b/Refactor_Plan.md index 9bf60fed..9acc4787 100644 --- a/Refactor_Plan.md +++ b/Refactor_Plan.md @@ -1,5 +1,9 @@ # Piano di Refactoring: Migrazione a FusionCache in `MpDataService.cs` +Stiamo lavorando sul progetto MP-SPEC.sln, dentro la cartella MP-SPEC (ed i progetti da cui dipende). + +Voglio ottimizzare il file Data\MpDataService.cs + ## Obiettivo Migrare la logica di caching manuale (Redis + DB) verso l'utilizzo di `IFusionCache` per implementare un approccio multi-layer (Memory + Redis + DB), standardizzando l'accesso ai dati. @@ -13,75 +17,6 @@ Migrare la logica di caching manuale (Redis + DB) verso l'utilizzo di `IFusionCa ### Fase 2: Refactoring Metodi di Lettura (Cache-aside) -#### ✅ Completati (Migrati con `GetOrFetchAsync`) -- `ActionGetReq` -- `AnagEventiGeneralAsync` -- `AnagStatiCommAsync` -- `AnagTipoArtLvAsync` -- `ArticleWithDossierAsync` -- `ArticoliGetByTipoAsync` -- `ArticoliGetSearchAsync` -- `ConfigGetAllAsync` -- `DossiersGetLastFiltAsync` -- `ElencoAziendeAsync` -- `ElencoGruppiFaseAsync` -- `ElencoLinkAsync` -- `FluxLogGetLastFiltAsync` -- `FluxLogParetoAsync` -- `OperatoriGetFiltAsync` -- `POdlGetByOdlAsync` -- `POdlListGetFiltAsync` -- `TksScoreAsync` -- `WipKitFiltAsync` -- `MacchineRecipeArchiveAsync` -- `MacchineRecipeConfAsync` - -#### ⏳ In corso / Da Migrare -- `AnagEventiGetByMacch` -- `AnagKeyValGetAll` -- `ConfigGetAll` (Sincrono) -- `ConfigTryGet` (Sincrono) -- `ConfigTryGetAsync` -- `DbDedupStats` -- `ElencoRepartiDTO` -- `ExpiryReloadParamGet` -- `IobInfo` -- `ListPODL_ByCodArt` -- `MacchineGetFilt` -- `MachIobConf` -- `MachIobConfVal` -- `MseGetAll` -- `OdlByBatch` -- `OdlGetCurrentAsync` -- `OdlListGetFilt` -- `OperatoriGetFilt` (Sincrono) -- `ParametriGetFilt` -- `POdlGetByKey` -- `POdlListByKitParent` -- `ProcFLStats` -- `StatoMacchina` -- `TagConfGetKey` -- `VocabolarioGetAll` - -### Fase 3: Refactoring Metodi di Scrittura e Invalidazione -- [ ] `AnagGruppiDelete` -- [ ] `AnagGruppiUpsert` -- [ ] `ArticoliDeleteRecord` -- [ ] `ArticoliUpdateRecord` -- [ ] `ConfigResetCache` -- [ ] `DossiersDeleteRecord` -- [ ] `DossiersTakeParamsSnapshotLast` -- [ ] `IstKitDelete` -- [ ] `IstKitInsertByWKS` -- [ ] `IstKitUpsert` -- [ ] `PodlIstKitDelete` -- [ ] `POdlDoSetup` -- [ ] `POdlUpdateRecipe` -- [ ] `POdlUpdateRecord` -- [ ] `RecipeSetByPODL` -- [ ] `TemplateKitDelete` -- [ ] `TemplateKitUpsert` - #### Fase 4: Verifica - [ ] Verificare la compilazione della soluzione tramite script PowerShell. diff --git a/Refactor_Plan.pdf b/Refactor_Plan.pdf new file mode 100644 index 00000000..18fab5be Binary files /dev/null and b/Refactor_Plan.pdf differ