CodeIgniter Forums
[split] "Proving" CodeIgniter worth - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Choosing CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=8)
+--- Thread: [split] "Proving" CodeIgniter worth (/showthread.php?tid=63248)



[split] "Proving" CodeIgniter worth - burhanuddin_bhopal - 10-11-2015

i have a task to prove that how Code Igniter MVC framework help in processing the data fast as compared webiste not using the MVC framework or Code Igniter framework . This task is assigned by my mentor as they ask me why i am using the Code Igniter frame work in my minor project . I am doing this ... Any help is really appriciated ....Thanx in advance ...\

Burhanuddin Bhopal Wala
CSE , 2nd year
Jaypee Institute of Information Technology
INDIA


RE: [split] "Proving" CodeIgniter worth - ivantcholakov - 10-11-2015

Plain PHP files are usually a mixture of data processing and outputting to the browser what is ready immediately. They can achieve the fastest performance. But sites written in this manner are difficult for supporting and growing up. Imagine what would happen when a designer gets messed with these PHP files that do everything.

PHP MVC frameworks buffer the output to the browser. A page starts to be sent to the browser when it is rendered completely. This is a price to be paid in exchange of separation of concerns that MVC methodology gives.

"i have a task to prove that how Code Igniter MVC framework help in processing the data fast as compared webiste not using the MVC framework or Code Igniter framework ." - rephrase this, because speed of database operations has nothing to do with whether you use MVC or not.


RE: [split] "Proving" CodeIgniter worth - burhanuddin_bhopal - 10-11-2015

Thanx sir for ur reply but I observerd the elapsed time of a page for retrieving 120000 records from the table  using codeigniter MVC pattern and without it just simple php script I observed the elapse time is 3 sec for code igniter page and 5.1 sec for php script .


Can anyone suggest me why ii get the result so fast using the framework is MVC is the reason or some else .. Thanx in advance any help is really appreciate as its helping me in making my own research paper ....
Thank you


RE: [split] "Proving" CodeIgniter worth - ivantcholakov - 10-11-2015

1. Why MVC - read this http://symfony.com/doc/current/book/from_flat_php_to_symfony2.html
2. Why CodeIgniter - well, research what good arguments have been accumulated here http://forum.codeigniter.com/forum-8.html , but keep in mind that choosing a framework has a subjective component too. Find also external readings (comparisons).


RE: [split] "Proving" CodeIgniter worth - burhanuddin_bhopal - 10-11-2015

Thanx for ur reply and interest hope u received my previous post and if u received then plz can u advise me why I am getting the elapsed time of 3.1 and 5.1 for the same data records retrieving with and without using bmtje codeigniter ... Exact reasons really helps me in my research .....


RE: [split] "Proving" CodeIgniter worth - ivantcholakov - 10-11-2015

@burhanuddin_bhopal

Let us assume for CodeIgniter:

1. You use the same database driver, i.e. mysqli, etc.
2. You don't use the query builder, but SQL queries directly, with proper escaping - http://www.codeigniter.com/user_guide/database/queries.html
3. While dealing with the returned recordsets you use the method unbuffered_row() http://www.codeigniter.com/user_guide/database/results.html

Then you will retrieve your data practically with the same speed as the plain PHP implementation can achieve. You can make sample tests and you will see. But don't expect me doing them, it is your job. :-)