CodeIgniter Forums
Using CI for AJAX (how about performance?) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Using CI for AJAX (how about performance?) (/showthread.php?tid=70255)



Using CI for AJAX (how about performance?) - glorsh66 - 03-14-2018

Just asking - i wanna implement some ajax on my front-end, so i wonder - is it wise to use CI's controller for answers?
Or it is a way better to write separate php that do only this stuff.

For instance - take a list of cities from a database when a user selected a particular country. 
It's way more convenient to implement it all in CI (because i can reuse models, and helpers and query builder is quite nice.)
But does it worth it? Will CI itself be a huge impedance  for frequent AJAX requests?


RE: Using CI for AJAX (how about performance?) - donpwinston - 03-14-2018

"Will CI itself be a huge impedance for frequent AJAX requests?"

No

"It's way more convenient to implement it all in CI (because i can reuse models, and helpers and query builder is quite nice.)"

That's why you use a framework