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
35476 210 d 1 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/model/ Optimize Aging.15DaysOurStock query for better performance

- Restructured query to start from invoice table with sargable date filter
- Changed DATEDIFF(now(), inv.invoiceDate) > 15 to inv.invoiceDate < DATE_SUB(CURDATE(), INTERVAL 15 DAY)
- Reordered JOINs for better query execution plan
- Allows MySQL to use index on invoiceDate for initial filtering

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
 
34098 559 d 13 h ranu /trunk/ eol-slow, slow-runn migartion  
34074 573 d 12 h ranu /trunk/ format done according to shankar sir on aging modal  
34068 577 d 4 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ warehouse invoice migration  
34058 580 d 9 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/model/ 15 days old sold aging model comiited  
34055 580 d 11 h ranu /trunk/ 15 days old sold aging model comiited