Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff Changes
35701 24 d 5 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)
 
/trunk/PyProj/src/setup.py
/trunk/PyProj/src/shop2020/content/main/handler/ContentHandler.py
/trunk/PyProj/src/shop2020/helpers/impl/DataService.py
/trunk/PyProj/src/shop2020/logistics/service/impl/DataAccessor.py
/trunk/PyProj/src/shop2020/logistics/service/impl/DataService.py
/trunk/PyProj/src/shop2020/logistics/service/impl/EcomExpressService.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/DataAccessors.py
/trunk/PyProj/src/shop2020/model/v1/order/impl/DataService.py
/trunk/PyProj/src/shop2020/model/v1/order/impl/ObsoleteDataAccessors.py
/trunk/PyProj/src/shop2020/model/v1/user/impl/Dataservice.py
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
/trunk/PyProj/src/shop2020/purchase/main/handler/PurchaseServiceHandler.py
35608 36 d 5 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
2747 5334 d 9 h chandranshu /trunk/ Added the missing links to create a refund  
/trunk/PaymentService/src/main/java/in/shop2020/payment/domain/Refund.java
/trunk/PaymentService/src/main/java/in/shop2020/payment/domain/RefundAttribute.java
/trunk/PaymentService/src/main/java/in/shop2020/payment/handler/RefundHandler.java
/trunk/PaymentService/src/main/java/in/shop2020/payment/persistence/RefundMapper.java
/trunk/PaymentService/src/main/resources/in/shop2020/payment/persistence/RefundMapper.xml
/trunk/PyProj/src/shop2020/clients/PaymentClient.py
/trunk/ThriftConfig/src/main/java/in/shop2020/payments/Refund.java
/trunk/HotspotDashboard/src/main/java/in/shop2020/hotspot/dashbaord/client/inbox/InboxPresenterImpl.java
/trunk/HotspotDashboard/src/main/java/in/shop2020/hotspot/dashbaord/client/inbox/OrderDetails.java
/trunk/HotspotDashboard/src/main/java/in/shop2020/hotspot/dashbaord/client/inbox/RejectReasonBox.java
/trunk/HotspotDashboard/src/main/java/in/shop2020/hotspot/dashbaord/server/handler/RejectOrderHandler.java
/trunk/PaymentService/src/main/java/in/shop2020/payment/service/handler/PaymentServiceHandler.java
/trunk/PaymentService/src/main/resources/mybatis-config.xml
/trunk/PyProj/src/shop2020/model/v1/order/impl/DataAccessors.py
/trunk/PyProj/src/shop2020/model/v1/user/impl/UserDataAccessors.py
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
/trunk/PyProj/src/shop2020/thriftpy/payments/PaymentService.py
/trunk/PyProj/src/shop2020/thriftpy/payments/ttypes.py
/trunk/ThriftConfig/src/main/java/in/shop2020/payments/PaymentService.java
/trunk/ThriftGen/thriftsrc/PaymentService/PaymentService.thrift
1248 5449 d 10 h chandranshu /trunk/PyProj/src/shop2020/ Made database name a configurable parameter for Payment, Logistics and Helper service to ensure that test and development databases can be different  
/trunk/PyProj/src/shop2020/helpers/impl/DataAccessor.py
/trunk/PyProj/src/shop2020/helpers/impl/DataService.py
/trunk/PyProj/src/shop2020/helpers/impl/HelperServer.py
/trunk/PyProj/src/shop2020/helpers/impl/HelperServiceHandler.py
/trunk/PyProj/src/shop2020/logistics/service/LogisticsServer.py
/trunk/PyProj/src/shop2020/logistics/service/impl/DataAccessor.py
/trunk/PyProj/src/shop2020/logistics/service/impl/DataService.py
/trunk/PyProj/src/shop2020/logistics/service/impl/LogisticsServiceHandler.py
/trunk/PyProj/src/shop2020/payments/PaymentsServer.py
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
/trunk/PyProj/src/shop2020/payments/impl/PaymentsHandler.py
1131 5460 d 4 h chandranshu /trunk/PyProj/src/shop2020/ Added pool_recycle parameter to the create_engine call  
/trunk/PyProj/src/shop2020/helpers/impl/DataService.py
/trunk/PyProj/src/shop2020/logistics/service/impl/DataService.py
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
1130 5460 d 4 h rajveer /trunk/PyProj/src/shop2020/payments/impl/ modified size of the description column to 200  
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
746 5509 d 10 h rajveer /trunk/PyProj/src/shop2020/ support mysql added for mysql  
/trunk/PyProj/src/shop2020/helpers/impl/DataService.py
/trunk/PyProj/src/shop2020/logistics/service/impl/DataService.py
/trunk/PyProj/src/shop2020/logistics/service/impl/LogisticsServiceHandler.py
/trunk/PyProj/src/shop2020/model/v1/catalog/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
743 5510 d 7 h rajveer /trunk/PyProj/src/shop2020/ Logistic provider addition to order, code moved to OrderService.  
/trunk/PyProj/src/shop2020/model/v1/order/impl/DataAccessors.py
/trunk/PyProj/src/shop2020/model/v1/user/impl/CartDataAccessors.py
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
703 5515 d 8 h chandranshu /trunk/PyProj/src/shop2020/payments/impl/ Removed some extraneous commas from the data service  
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
701 5515 d 8 h chandranshu /trunk/PyProj/src/shop2020/ Implemented all methods of the payment service  
/trunk/PyProj/src/shop2020/payments/impl/DataAccessor.py
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
/trunk/PyProj/src/shop2020/payments/impl/PaymentsHandler.py
/trunk/PyProj/src/shop2020/payments/impl/converters.py
/trunk/PyProj/src/shop2020/thriftpy/payments/ttypes.py
420 5670 d 7 h ashish /trunk/ payment service  
/trunk/Common/src/in/shop2020/thrift/clients/PaymentServiceClient.java
/trunk/PyProj/src/shop2020/payments
/trunk/PyProj/src/shop2020/payments/PaymentsServer.py
/trunk/PyProj/src/shop2020/payments/__init__.py
/trunk/PyProj/src/shop2020/payments/impl
/trunk/PyProj/src/shop2020/payments/impl/DataAccessor.py
/trunk/PyProj/src/shop2020/payments/impl/DataService.py
/trunk/PyProj/src/shop2020/payments/impl/PaymentsHandler.py
/trunk/PyProj/src/shop2020/payments/impl/__init__.py
/trunk/PyProj/src/shop2020/payments/impl/converters.py
/trunk/PyProj/src/shop2020/payments/test
/trunk/PyProj/src/shop2020/payments/test/__init__.py
/trunk/PyProj/src/shop2020/thriftpy/payments
/trunk/PyProj/src/shop2020/thriftpy/payments/PaymentService-remote
/trunk/PyProj/src/shop2020/thriftpy/payments/PaymentService.py
/trunk/PyProj/src/shop2020/thriftpy/payments/__init__.py
/trunk/PyProj/src/shop2020/thriftpy/payments/constants.py
/trunk/PyProj/src/shop2020/thriftpy/payments/ttypes.py
/trunk/ThriftConfig/src/in/shop2020/payments/PaymentGatewayStatus.java
/trunk/Common/conf/shop2020.cfg
/trunk/Common/src/in/shop2020/utils/ConfigClientKeys.java
/trunk/ThriftConfig/src/in/shop2020/payments/Payment.java
/trunk/ThriftConfig/src/in/shop2020/payments/PaymentGateway.java
/trunk/ThriftConfig/src/in/shop2020/payments/PaymentRequest.java
/trunk/ThriftConfig/src/in/shop2020/payments/PaymentService.java
/trunk/ThriftGen/thriftsrc/PaymentService/PaymentService.thrift