【发布时间】:2014-08-25 06:53:46
【问题描述】:
我正在尝试从 sql 表 A 中检索数据,修改一些列,然后将修改后的列插入到 sql 表 B 中。
但是我的问题是当我使用时:
$customer= new Customer;
$fakecustomer= new Fakecustomer;
$fake_customer_name_records = $fakecustomer->get()->toArray();
foreach($fake_customer_name_records as $record){
//process columns for each record
$fake_customer_name_records_arry[]=array(
'last_name'=>$last_name,
'first_name'=>$first_name,
'home_phone'=>$phonenumber,
);
}
$customer->insert($fake_customer_name_records_arry);
它只能插入大约 1000 条记录。 Laravel 有没有办法让我处理大约 60,000 条记录?
谢谢
【问题讨论】:
-
如果您告诉我们在尝试处理 60,000 时会发生什么可能会有所帮助?
标签: php mysql laravel laravel-4 eloquent