Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
35751 68 d 17 h amit /trunk/PyProj/src/shop2020/model/v1/order/impl/ TransactionServer: add session.expunge_all() and periodic gc.collect() in close_session() to prevent memory growth from ORM identity map accumulation and Python 2.7 memory fragmentation  
35734 69 d 15 h amit /trunk/PyProj/src/shop2020/model/v1/order/impl/ Remove AlertClient dependency from order DataAccessors and ObsoleteDataAccessors  
35718 71 d 6 h amit /trunk/PyProj/src/shop2020/ fix: use session.remove() instead of session.close() to prevent memory leaks in all services  
35701 71 d 13 h amit /trunk/PyProj/src/ Performance fix: reduce logging level to WARNING, remove incompatible pool_pre_ping, fix tornado dependency

- Changed logging.basicConfig from DEBUG to WARNING in 6 service files to stop
SQLAlchemy query spam that caused memory bloat (TransactionServer 553MB -> 63MB)
- Set echoOn=False as default in PurchaseServiceHandler
- Removed pool_pre_ping=True from 7 DataService files (incompatible with SQLAlchemy 0.6.6)
- Updated tornado dependency from 1.0.1 to 1.0 in setup.py (1.0.1 unavailable on PyPI)
 
35608 83 d 13 h amit /trunk/PyProj/src/shop2020/ Fix DB connection pooling to reduce service restarts

- Add pool_timeout=30 to fail fast instead of hanging indefinitely
- Add pool_pre_ping=True to detect stale MySQL connections before use
- Reduce pool_recycle from 7200s to 3600s for fresher connections
- Disable SQL echo logging (echo=False) to reduce memory/CPU usage
- Fix MongoDB connection with thread-safe initialization and proper pooling

Modified services: helper, user, inventory, order, payment, logistics, catalog
 
34206 428 d 15 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/ Added comment  
34205 428 d 15 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/ Removed change color  
30063 1522 d 10 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  
26410 2238 d 13 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  
26409 2238 d 13 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  
26000 2321 d 16 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  
25944 2331 d 18 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/ Invoice details should not be removed once billed.  
25193 2484 d 17 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  
25020 2511 d 11 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  
25019 2511 d 12 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  
24945 2535 d 15 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/ Fixed status  
24908 2541 d 10 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  
24907 2541 d 10 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  
24262 2695 d 15 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/ Fixed  
24214 2717 d 16 h amit.gupta /trunk/PyProj/src/shop2020/model/v1/order/impl/  

Show All