简体   繁体   English

哪个更快,C&MySql或PHP&MySql?

[英]Which is faster, C & MySql or PHP & MySql?

I need to perform 3 million inserts to the database (mysql). 我需要对数据库执行300万次插入(mysql)。 PHP seems to be slow when it comes to insertion. 在插入时,PHP似乎很慢。 I just need to verify if C performs faster in executing codes. 我只需要验证C在执行代码时是否执行得更快。

The bottleneck is probably the database regardless of programming language. 无论编程语言如何,瓶颈可能都是数据库。

You should look into batch inserts and disabling of indexes during insert to speed up the process. 您应该在插入期间查看批量插入和禁用索引以加快进程。

C确实更快,但我也认为数据库是最大的瓶颈

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM