1 / 6

CS122B: Projects in Databases and Web Applications Spring 201 8

CS122B: Projects in Databases and Web Applications Spring 201 8. Professor Chen Li Department of Computer Science UC Irvine Notes 0 4 : Pagination and Caching. Pagination. Show results in different pages. SQL Support. SELECT columns FROM table LIMIT 2 0 OFFSET 10

diegoj
Download Presentation

CS122B: Projects in Databases and Web Applications Spring 201 8

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS122B: Projects in Databases and Web Applications Spring2018 Professor Chen Li Department of Computer Science UC Irvine Notes 04: PaginationandCaching

  2. Pagination • Showresultsindifferentpages Notes 04: Pagination

  3. SQLSupport SELECT columns FROM table LIMIT 20 OFFSET 10 http://www.petefreitag.com/item/451.cfm Notes 04: Pagination

  4. EmbeddingparametersinGETrequests Example: https://www.autotrader.com/cars-for-sale/Sedan/Irvine+CA-92604?zip=92604&startYear=1981&numRecords=25&sortBy=derivedpriceDESC&vehicleStyleCodes=SEDAN&firstRecord=0&endYear=2019&searchRadius=10 Notes 04: Pagination

  5. Caching in Tomcat • Storethequeryresultsasanobject • Laterrequestscanbeservedusingthecachewithoutqueryingthedatabase Notes 04: Pagination

  6. Caching in Tomcat • Pros: • LesstrafficonDB • Lowresponsetime • Cons: • Memoryoverheadinwebserver • Resultsmaybeobsolete Notes 04: Pagination

More Related