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
37497 36 d 9 h ranu /trunk/ rbm drr dashboard , all today po rbm view maped  
37487 37 d 6 h ranu /trunk/ rbm drr dashboard , all today po rbm view maped  
37460 39 d 8 h ranu /trunk/ rbm drr dashboard new ui looks  
37442 41 d 7 h ranu /trunk/ rbm drr dashboard new ui looks  
37145 72 d 12 h ranu /trunk/ level l1 to l9 commited  
37022 92 d 12 h ranu /trunk/ targeted calling count on today po rbm  
37013 93 d 9 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ tried call given on rbm dashboard  
37012 93 d 11 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ tried call given on rbm dashboard  
37011 95 d 8 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ tried call given on rbm dashboard  
37010 95 d 9 h ranu /trunk/ tried call given on rbm dashboard  
36998 97 d 8 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ rbm calling target issue fix according to aquil  
36997 97 d 9 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ rbm calling target issue fix according to aquil  
36996 97 d 10 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ rbm calling target issue fix according to aquil  
36994 97 d 11 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ rbm calling target issue fix according to aquil  
36883 109 d 10 h ranu /trunk/ calling target given  
36596 141 d 9 h ranu /trunk/ row dump of target  
36359 168 d 6 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ rbm rating dashboard view commited  
36334 169 d 6 h ranu /trunk/ rbm rating dashboard view commited  
36333 169 d 7 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Fix IllegalStateException: drop 'unless' when using @Cacheable(sync=true)

Spring Cache rejects @Cacheable with both sync=true AND an 'unless' attribute,
throwing IllegalStateException on every invocation. Surfaced in production log
on smartdukaan — MonitorController.todayPORBM:739 was returning 500 on 40
observed calls this session.

Dropped 'unless'. Caching an occasionally-empty List for 5 min is harmless:
months with no sales produce an empty result, which is cheaper to re-query
after 5 min than to keep special-casing. The real fix driver for sync=true
(stampede protection) is preserved.
 
36329 169 d 9 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Tune rbmWeeklyBilling cache: 2m→5m TTL + sync=true

The RBM weekly billing aggregate query takes ~2s per call (1,924 cumulative hits
on hadb1 = 3,800s DB time). Previously cached for only 2 minutes with no
stampede protection — every 2m window, every concurrent dashboard load ran the
aggregate in parallel and burnt Hikari slots simultaneously.

- 2m → 5m: this is month-level aggregate bucketed by week, doesn't need
sub-minute freshness for an RBM dashboard.
- sync=true: single in-JVM computation per (monthStart, monthEnd) key per
expiry window; concurrent misses wait for the in-flight load instead of
racing to the DB.

fiveMintimeoutCacheManager already exists in CacheConfig:73 (Caffeine, in-memory,
so no Redis/LocalDateTime serialization concerns).
 

Show All