⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Loading never ends when i adding bulk data



akhil

akhil
  • profile picture
  • Member

Posted 04 January 2017 - 15:22 PM

After inserting a row we have to add bulk of data to another table. When doing so loading never ends. but data is inserted properly. Bulk data in the sense around 1000 of records.


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 18 January 2017 - 03:10 AM

Hi Akhil,

 

It might be quite possible the insertion may be causing a timeout. GC dose a ajax call - it needs to have a proper response from the call.. u work around using callback_after_insert.. now your inserts may have caused up the situation for the application to timeout.. thats where it might not be getting any positive update back from ajax and hence the loading didnt end.

 

A turnaround.. if possible - write a trigger that will do your work directly @the mysql level .. rather then doing it @the CI level..

 

Happy GCing :)