How to insert multiple rows from array using CodeIgniter framework?

Assembling one INSERT statement with multiple rows is much faster in MySQL than one INSERT statement per row. That said, it sounds like you might be running into string-handling problems in PHP, which is really an algorithm problem, not a language one. Basically, when working with large strings, you want to minimize unnecessary copying. Primarily, … Read more

SQL Server bulk insert for large data set

Check if your database in Full or Simple recovery mode: SELECT recovery_model_desc FROM sys.databases WHERE name=”MyDataBase”; If database is SIMPLE recovery mode you can create a staging table right there. If it is in Full mode then better create Staging table in separate database with Simple model. Use any BulkInsert operation/tool (for instance BCP, as … Read more