Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
35720 243 d 15 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ code commit for calling target / retailer contact  
35714 244 d 7 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ code commit for calling target / retailer contact  
35702 244 d 8 h ranu /trunk/ now recording also fetching  
35677 246 d 13 h ranu /trunk/ code commit for calling target / retailer contact  
35672 247 d 6 h ranu /trunk/ code commit for calling target / retailer contact  
35670 247 d 7 h ranu /trunk/ code commit for calling target / retailer contact  
35669 247 d 8 h ranu /trunk/ code commit for calling target / retailer contact  
35665 247 d 11 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ code commit for calling target / retailer contact  
35662 248 d 9 h ranu /trunk/ code commit for calling target / retailer contact  
35654 249 d 14 h ranu /trunk/ code commit for calling target / retailer contact  
35645 251 d 11 h ranu /trunk/ code commit for calling target  
35631 253 d 14 h ranu /trunk/ code commit for calling target  
35454 295 d 11 h amit /trunk/ perf: Optimize N+1 queries and reduce stream iterations in today_po and today_po_rbm endpoints

MonitorController.java:
- Consolidate 12 stream ops on rbmArrViewModels into single loop
- Consolidate 6 stream ops on sold15daysOldAgingModels into single loop
- Consolidate 6 stream ops on weeklyBillingData into single loop
- Merge double iteration loops into single pass operations
- Replace containsKey+get patterns with computeIfAbsent/getOrDefault
- Add extractRbmNames() helper to eliminate duplicated stream operations

CsServiceImpl.java:
- Fix N+1 in getAuthUserIdAndAuthUserMap using batch selectByIds
- Fix N+1 in getTicketIdAndAuthUserMapUsingTickets using batch selectByIds
- Fix N+1 in getAuthUserIdAndAuthUserMapUsingPositions using batch selectByIds
- Fix N+1 in getCategoryIdAndCategoryUsingPositions using batch selectAll
- Fix N+1 in getRegionIdAndRegionMap using batch selectAll
- Fix N+1 in getAuthUserByPartnerId using batch selectByIds
- Fix double N+1 in getAuthUserAndEsclationTypeByPartnerId
- Fix N+1 in authUserpartnerIdMap using selectByPositionIds
- Fix N+1 in getAuthUserIdPartnerIdMappingByCatIds
- Fix N+1 in getAuthUserIdPartnerIdMapping

RbmTargetServiceImpl.java:
- Fix O(n*m) stream filter in getRbmTodayArr using pre-built lookup maps
- Fix O(n*m) stream filter in setMovementWiseRbmTargets using pre-built maps

today_po.vm:
- Optimize template lookups with single get instead of containsKey+get
 
35453 295 d 12 h amit /trunk/ Optimize /indent/today_po_rbm endpoint - reduce DB queries by ~99%

- Consolidate 5 weekly billing queries into 1 using SQL CASE statements
- Add RbmWeeklyBillingModel for consolidated weekly billing data
- Batch fetch partner collection remarks to avoid N+1 queries
- Batch fetch collection map for all fofoIds to avoid N+1 queries in nested loop
- Reduces ~1160 queries to ~10 queries for 50 RBMs
 
35044 387 d 13 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ rbm targets fix  
34880 426 d 6 h ranu /trunk/ commit drr issue solved  
34870 430 d 7 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ requested hid alloction valid only till created date  
34764 460 d 8 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ bi report correction  
34763 460 d 9 h ranu /trunk/ bi report correction  
34716 472 d 8 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ bi report correction  

Show All