Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37089 2 d 23 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ Optimize partnerPerformance data access: fofoId-scoped + month-bucketed query variants

- Order: fofoId-scoped billing-avg named queries (replace all-partner scan+filter)
- MonthlyTarget: selectByDatesAndFofoId batches 7 per-month lookups into one
- SchemeInOut/OfferPayout: month-bucketed ...ByMonth earnings queries collapsing the
per-month loop; new MonthlyBrandIncomeModel / MonthlyOfferPayoutModel
All additive; existing shared queries and their callers unchanged.
 
37077 3 d 2 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ old version app disabled for rbm  
36972 16 d 1 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ changeList  
36713 50 d 19 h amit /trunk/profitmandi-dao/src/main/ PI idempotency fix: original_wallet_amount + order_wallet_adjustment tracking for price drops and splits. Modernize statement queries with INVOICE_CANCELLED and RETURNS_CN unions.  
36470 73 d 18 h ranu /trunk/ code commit for reports section v2  
36327 87 d 0 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fix currentinventorysnapshot/currentreservationsnapshot deadlock and optimize getFirstBillingDate

- SaholicInventoryServiceImpl: enforce reservation-snapshot → inventory-snapshot
lock order in addReservationCount and reduceReservationCount via explicit
session.flush(); eliminates the hadb1 deadlock recorded 2026-04-20 19:43:24
between these two methods' opposite-order writes.
- SaholicInventorySnapshot: add @DynamicUpdate so UPDATEs only rewrite the
changed column instead of all three — cuts redo/binlog write amplification
and makes deadlock dumps pinpoint the actual business path.
- TransactionRepositoryImpl.getFirstBillingDate: replace filesort-over-all-billed-
orders with MIN(billingTimestamp) via new Order.selectFirstBillingByRetailer
named query (Select tables optimized away). Preserves 2017-01-01 cutoff and
null-for-unbilled-partner semantics.
- Add @Cacheable on redisOneDayCacheManager keyed by fofoId (unless null) so the
8 call sites stop piling up identical SELECTs on the order table — this was
the query pinning Hikari slots at 150-460s each in recent processlist dumps.
 
35631 167 d 1 h ranu /trunk/ code commit for calling target  
35490 205 d 18 h ranu /trunk/ given brandwise placement acesseries qty instead of value  
35475 207 d 12 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ Optimize selectTodayOrdersRBM: Replace derived table subquery with direct JOINs - 33x faster (78s -> 2.3s)  
35474 207 d 13 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ Optimize selectTodayOrders query: Replace OR with UNION ALL to avoid sort_union operation for today_po endpoint  
35473 207 d 13 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ Optimize selectTodayOrdersRBM query: Replace OR with UNION ALL to avoid sort_union operation and improve query performance  
35172 278 d 20 h ranu /trunk/ billed po action download option done  
35155 281 d 13 h ranu /trunk/ get quote from backend  
35154 281 d 18 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ get quote from backend  
35153 281 d 18 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ bm wise filter in today po  
35147 282 d 18 h ranu /trunk/ bm wise filter in today po  
34849 349 d 18 h ranu /trunk/ logger added  
34813 360 d 20 h aman /trunk/ Partner Dashboard Analysis  
34754 375 d 0 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ method update  
34741 380 d 18 h ranu /trunk/ bi report correction  
34738 381 d 18 h ranu /trunk/ bi report correction  
34721 384 d 21 h ranu /trunk/ bi report correction  
34715 385 d 19 h ranu /trunk/ bi report some correction  
34641 408 d 23 h ranu /trunk/ bi report completed first commit  
34584 423 d 0 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ Removed delivery timestamp check  
33947 604 d 22 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ mtd and today target data query correction  
33944 605 d 2 h ranu /trunk/ mtd and today target data query correction  
33873 639 d 13 h ranu /trunk/ smart cart first phase updated  
33823 655 d 2 h amit.gupta /trunk/ Fixed changes related to sort issue  
33805 659 d 21 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ Addeed retailer count  
33801 659 d 22 h amit.gupta /trunk/ Addeed retailer count  
33791 661 d 16 h amit.gupta /trunk/ Added rbm wise Performance  
33464 756 d 1 h ranu /trunk/ poco billing mail shoot daily category team  
33443 763 d 22 h ranu /trunk/ print resource and order cancel by partner and cron dao mail shoot for Live Demo  
33430 773 d 19 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ Fixed Order quantity availability  
33429 773 d 19 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ Fixed Order quantity availability  
33396 785 d 20 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fixed warehouse related bugs  
33202 828 d 4 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ Fixed invoices  
33199 828 d 23 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ Previous purchases  
33189 831 d 4 h amit.gupta /trunk/ Fixed logic when pricedrops are reported late