optimize ecommerce operations