duanpin2034 2018-10-27 22:33
浏览 164

Php Artisan迁移超级慢?

I am new to Laravel, I am using the 5.7 version, I am following a course that looks very good but I created my database on mysql and then I tried to run the command - php artisan migrate - and it took so long, I get bored everytime and I cancel it, there must be a better solution because it is very very slow, the man I am following his course get a response quickly as do many others, is there any solution out there that can help me move faster, am I missing something ?

Any help would be much appreciated.

  • 写回答

3条回答 默认 最新

  • dongluanguang4774 2018-10-27 22:36
    关注

    A lot of depends on your migrations but also on your server. Assuming you are using localhost server speed shouldn't affect, so you should take a look at migrations.

    Again, assuming you just create new tables migrations should be quick, but when you alter schema or add some data in loops or run some queries then yes, they might be slow if you don't have optimized code but this is reason of code itself and not in general migrations.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于博途V17进行仿真时无法建立连接问题
  • ¥15 请问下这个红框里面是什么文档或者记事本编辑器
  • ¥15 机器学习教材中的例题询问
  • ¥15 求.net core 几款免费的pdf编辑器
  • ¥15 为什么安装HCL 和virtualbox之后没有找到VirtualBoxHost-OnlyNetWork?
  • ¥15 C# P/Invoke的效率问题
  • ¥20 thinkphp适配人大金仓问题
  • ¥20 Oracle替换.dbf文件后无法连接,如何解决?(相关搜索:数据库|死循环)
  • ¥15 数据库数据成问号了,前台查询正常,数据库查询是?号
  • ¥15 算法使用了tf-idf,用手肘图确定k值确定不了,第四轮廓系数又太小才有0.006088746097507285,如何解决?(相关搜索:数据处理)