Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS122B: Projects in Databases and Web Applications Spring 2018

Similar presentations


Presentation on theme: "CS122B: Projects in Databases and Web Applications Spring 2018"— Presentation transcript:

1 CS122B: Projects in Databases and Web Applications Spring 2018
Professor Chen Li Department of Computer Science UC Irvine Notes 04: Pagination and Caching

2 Pagination Show results in different pages CS122B Notes 04: Pagination

3 SQL Support SELECT columns FROM table LIMIT 20 OFFSET 10
CS122B Notes 04: Pagination

4 Embedding parameters in GET requests
Example: CS122B Notes 04: Pagination

5 Caching in Tomcat Store the query results as an object
Later requests can be served using the cache without querying the database CS122B Notes 04: Pagination

6 Caching in Tomcat Pros: Cons: Less traffic on DB Low response time
Memory overhead in web server Results may be obsolete CS122B Notes 04: Pagination


Download ppt "CS122B: Projects in Databases and Web Applications Spring 2018"

Similar presentations


Ads by Google