Welcome Guest, Not a member yet? Register   Sign In
[split] "Proving" CodeIgniter worth
#1

(This post was last modified: 10-11-2015, 02:31 PM by ciadmin.)

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
Reply
#2

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.
Reply
#3

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
Reply
#4

1. Why MVC - read this http://symfony.com/doc/current/book/from...fony2.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).
Reply
#5

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 .....
Reply
#6

@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/da...eries.html
3. While dealing with the returned recordsets you use the method unbuffered_row() http://www.codeigniter.com/user_guide/da...sults.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. :-)
Reply




Theme © iAndrew 2016 - Forum software by © MyBB