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
35433 222 d 11 h amit /trunk/profitmandi-fofo/ Add @Transactional(readOnly=true) to read-only controllers for performance

Updated 11 controllers that only perform read operations:
- AnalysisDashboardController, InvoiceController, ItemLedgerController
- MapTrackController, MarginController, MongoMigrationController
- PartnerPendingTasksController, PostOfficeController, ScanRecordController
- LogixController, MonitorController

Benefits:
- Hibernate skips dirty checking (faster)
- Database can optimize for read-only queries
- Connection marked as read-only for potential read replica routing

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
 
35432 222 d 13 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Remove @Transactional from DashboardController

Transaction management now handled at repository level (GenericRepositoryImpl).
Controllers no longer need @Transactional annotation.
 
35430 222 d 13 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fix: Add @Transactional(readOnly = true) to DashboardController

Hibernate's getCurrentSession() requires a transaction context.
Using readOnly=true provides session context with optimizations:
- No row-level locks acquired
- DB can optimize for read-only queries
- Shorter connection hold time than read-write transactions
 
35429 222 d 13 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Remove unnecessary @Transactional from DashboardController

- Removed class-level @Transactional(rollbackOn = Throwable.class)
- All 57 methods in this controller are read-only operations (dashboards, charts, reports)
- No transaction management needed for pure read operations
- Reduces unnecessary connection pool usage
 
35415 223 d 18 h amit /trunk/ Commit Changes  
35395 224 d 8 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed performance  
35391 225 d 14 h aman /trunk/ Fix:Trial Upgrade internal and external mail  
35375 229 d 14 h aman /trunk/ Feat:Upload Banner for trail user  
35372 230 d 13 h aman /trunk/ Fix:Store Code Creation for trial user  
35370 230 d 16 h aman /trunk/ DEBUG:add debugger for trialform  
35360 231 d 15 h aman /trunk/ Feat:Approval page for sales team  
35348 232 d 21 h ranu /trunk/profitmandi-fofo/src/main/ upload code for video url  
35346 235 d 13 h ranu /trunk/ upload code for video url  
35340 236 d 20 h aman /trunk/profitmandi-fofo/src/main/ Feat:Approval page to trial user  
35335 239 d 14 h ranu /trunk/ code deploy with partners of loans  
35320 245 d 15 h ranu /trunk/ code deploy with partners of loans  
35318 245 d 20 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed hard limit  
35313 246 d 14 h amit /trunk/ Fixed SDCredit Trial  
35310 249 d 15 h aman /trunk/profitmandi-fofo/src/main/ Fix:Fix Monthly sale  
35305 250 d 15 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed bug related to trial form  

Show All