IT230 Assign 4 - with solutions - IT-230 Web Technologies Assignment#4 Due Date Copied answers will get Zero mark Q1(1 Mark Differentiate Buffered and

IT230 Assign 4 - with solutions - IT-230 Web Technologies...

This preview shows page 1 - 2 out of 7 pages.

IT-230 Web Technologies Assignment #4 Due Date: Copied answers will get Zero mark Q1: (1 Mark) Differentiate Buffered and Unbuffered Queries. Ans: Buffered queries will retrieve the query results and store them in memory on the client side, and subsequent calls to get rows will simply spool through local memory. Buffered queries have the advantage that you can seek in them, which means that you can move the “current row” pointer around in the result set freely because it is all in the client. Their disadvantage is that extra memory is required to store the result set, which could be very large, and that the PHP function used to run the query does not return until all the results have been retrieved. Unbuffered queries , on the other hand, limit you to a strict sequential access of the results but do not require any extra memory for storing the entire result set. You can start fetching and processing or displaying rows as soon as the MySQL server starts returning them. When using an unbuffered result set, you have to retrieve all rows with mysqli_fetch_row or close the result set with mysqli_free_result before sending any other command to the server.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 7 pages?

  • Spring '15
  • Dr.MohammedHayeider
  • Query language, discount percent, Saudi riyal, Bill Total

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes