MongoDB-OrderTransactions
2016-03-07 17:50
393 查看
https://github.com/magento-hackathon/MongoDB-OrderTransactions
Hackathon Team
Anthony, Andreas, Rouven, Allistair, Vinai, MatthiasAbout this project
Important: this code is a proof of concept and in no way meant to be used in production!You can scale Magento in many ways but there is one bottleneck which won't go away: the checkout process.When an order is placed, Magento does a lot of work in the background. This poses a problem for high volume stores.
How it works
This extension (part of the Magento Hackathon Munich in March 2012) uses a MongoDB database to solve the issue.The basic idea is to not create the orders directly on checkout but to push the order creation task to a queue which is processed by a cron job.The customer gets the confirmation as soon as the data data is written to the queue which should speed up the checkout quite a bit.
To make this possible, the following aspects have to be considered and implemented:
save the quotes information in MongoDB and keep it up-to-date whenever the customer changes his cart.
check if there are enough articles in stock when a user adds product to the cart.
after the checkout, transform the quote to an order in MongoDB, create a job to insert the orders into the Magento database
remove old entries (completed jobs etc.) in the MongoDB database periodically.
Magento uses the order as a foreign key in several flat tables and the order addresses. Therefore the creation of this entries has to be pushed to the queue as well.
Requirements
MongoDB. Obviously. Find out how to install it in theMongoDB documentation.
MongoDB PHP driver. This is a PECL extension. Check the
installation guide.
Todo
Fix Mage_Checkout_Model_Type_Multishipping::createOrders()It doesn't use sales/service_quote::submitAll() or sales/service_quote::submitOrder()Update MongoDB when user logs in (quote data is not updated correctly when you add products as guest and then log in?)
相关文章推荐
- mongodb学习(一)
- 搭建mongodb热备集群 和 c#驱动
- MongoDB只查询数据第1个元素
- mongoDB 索引
- mongodb杂记
- mongodb在重复数据的集合里建立唯一索引
- mongodb图形化管理工具
- mongodb可视化工具
- mongodb单机配置shard分片集群
- MongoDB常用操作命令大全
- mongodb3.2配置文件yaml格式
- linux下的mongodb的备份与恢复
- linux--mongodb安装与配置
- MongoDB中对象反序列化的一个小问题
- ubuntu 12.04 Server 上安装 nodejs, MongoDB
- mongodb 的简单使用
- MongoDB为何要部署单机副本集
- MongoDB监控项--如何使用命令得到
- appfog下用客户端管理你的mongodb、mysql(类似)
- MongoDB安装