Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff Changes
35608 32 d 14 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
 
/trunk/PyProj/src/shop2020/helpers/impl/DataService.py
/trunk/PyProj/src/shop2020/logistics/service/impl/DataService.py
/trunk/PyProj/src/shop2020/model/v1/catalog/impl/DataService.py
/trunk/PyProj/src/shop2020/model/v1/inventory/impl/DataService.py
/trunk/PyProj/src/shop2020/model/v1/order/impl/DataService.py
/trunk/PyProj/src/shop2020/model/v1/user/impl/Dataservice.py
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
/trunk/PyProj/src/shop2020/utils/ContentUploadUtil.py
19933 3554 d 14 h kshitij.sood /trunk/PyProj/src/shop2020/utils/  
/trunk/PyProj/src/shop2020/utils/ContentUploadUtil.py
19686 3588 d 18 h kshitij.sood /trunk/ Entity upload service  
/trunk/PyProj/src/shop2020/utils/ContentUploadUtil.py
/trunk/ThriftConfig/src/main/java/in/shop2020/content/BulkContentUpload.java
/trunk/ThriftConfig/src/main/java/in/shop2020/content/BulkContentUploadResult.java
/trunk/ThriftConfig/src/main/java/in/shop2020/model/v1/catalog/BulkUploadCatalog.java
/trunk/PyProj/src/shop2020/content/main/handler/ContentHandler.py
/trunk/PyProj/src/shop2020/model/v1/catalog/impl/CatalogServiceHandler.py
/trunk/PyProj/src/shop2020/model/v1/catalog/impl/DataAcessors.py
/trunk/PyProj/src/shop2020/model/v1/catalog/impl/DataService.py
/trunk/PyProj/src/shop2020/thriftpy/content/ContentService.py
/trunk/PyProj/src/shop2020/thriftpy/content/ttypes.py
/trunk/PyProj/src/shop2020/thriftpy/model/v1/catalog/CatalogService.py
/trunk/PyProj/src/shop2020/thriftpy/model/v1/catalog/ttypes.py
/trunk/ThriftConfig/src/main/java/in/shop2020/content/ContentService.java
/trunk/ThriftConfig/src/main/java/in/shop2020/model/v1/catalog/CatalogService.java
/trunk/ThriftGen/thriftsrc/CatalogService/CatalogService.thrift
/trunk/ThriftGen/thriftsrc/ContentService/ContentService.thrift