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
35452 301 d 3 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed npe issue and performance issue  
35451 301 d 4 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed  
35439 301 d 21 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed  
35437 302 d 0 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed  
35433 302 d 18 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 302 d 20 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 302 d 20 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 302 d 20 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 304 d 1 h amit /trunk/ Commit Changes  
35395 304 d 14 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed performance  
35391 305 d 21 h aman /trunk/ Fix:Trial Upgrade internal and external mail  
35375 309 d 21 h aman /trunk/ Feat:Upload Banner for trail user  
35372 310 d 20 h aman /trunk/ Fix:Store Code Creation for trial user  
35370 310 d 23 h aman /trunk/ DEBUG:add debugger for trialform  
35360 311 d 21 h aman /trunk/ Feat:Approval page for sales team  
35348 313 d 4 h ranu /trunk/profitmandi-fofo/src/main/ upload code for video url  
35346 315 d 20 h ranu /trunk/ upload code for video url  
35340 317 d 3 h aman /trunk/profitmandi-fofo/src/main/ Feat:Approval page to trial user  
35335 319 d 21 h ranu /trunk/ code deploy with partners of loans  
35320 325 d 22 h ranu /trunk/ code deploy with partners of loans  

Show All