我正在研究迁移脚本,它从一个MySQL数据库中选择数据并通过doctrine导入另一个MySQL数据库。 问题是,在每一块创建的实体之后,我的脚本变慢了。 p>
前100篇文章大约需要5秒才能导入,接下来的100篇文章需要7秒,接下来的10秒等等 。 这真是个大问题,因为我需要导入约1.5万篇文章。 p> div>
I was working on migration scripts which selects data from one MySQL database and import through doctrine into another MySQL database. The problem was that after every chunk of created entities, my scripts slowed down.
first 100 articles takes about 5 seconds to import, next 100 articles takes 7 seconds, next 10 seconds and so on. It is really big problem, because I need to import about 1.500.000 articles.
我正在研究迁移脚本,它从一个MySQL数据库中选择数据并通过doctrine导入另一个MySQL数据库。 问题是,在每一块创建的实体之后,我的脚本变慢了。 p>
前100篇文章大约需要5秒才能导入,接下来的100篇文章需要7秒,接下来的10秒等等 。 这真是个大问题,因为我需要导入约1.5万篇文章。 p> div>