php - Continue query execution if one query in batch fails in codeigniter -


i trying insert around 3000 rows using codeigniter batch insert problem , if 1 row in batch fails stops execution of other rows , prints query error.

is possible continue execution ,even if there failed query in batch , log failed query ?

i don't want use $this>db->query since takes lot more time , connections $this->db->insert_batch(); insert operation cron script runs every 5 min using fastest way more preferable since insert operations carried on transactional database.

not sure ci, i'd use exception class

something :

<?php try{     // php code } catch(exception $e){     // if error occurs, print, log, etc...     print_r($e); } ?> 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -