CS122B: Projects in Databases and Web Applications Winter 2019

Slides:



Advertisements
Similar presentations
1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
Advertisements

15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Database Connectivity Rose-Hulman Institute of Technology Curt Clifton.
Progress Report 11/1/01 Matt Bridges. Overview Data collection and analysis tool for web site traffic Lets website administrators know who is on their.
Multiple Tiers in Action
Using the Hibernate Package for Caching MDSplus Data Student Ajith M Jose (u ) Supervisors Henry Gardner, Raju Karia.
Computer Science 101 Web Access to Databases SQL – Extended Form.
Python MySQL Database Access
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
Marianne BargiottiBK Workshop – CERN - 6/12/ Bookkeeping Meta Data catalogue: present status Marianne Bargiotti CERN.
ICDL 2004 Improving Federated Service for Non-cooperating Digital Libraries R. Shi, K. Maly, M. Zubair Department of Computer Science Old Dominion University.
Http protocol Response-request Clients not limited to web browsers. Anything that can access code implementing the protocol works: –Standalone programs.
Ashley Montebello – CprE Katie Githens – SE Wayne Rowcliffe – SE Advisor/Client: Akhilesh Tyagi.
Database Server Concepts and Possibilities Lee Lueking D0 Data Browser Workshop April 8, 2002.
IBM Office Connect 3.0 James Edmiston Consultant Quest Information Systems, Inc Mike Terrell IT Specialist IBM Data.
Feb 24-27, 2004ICDL 2004, New Dehli Improving Federated Service for Non-cooperating Digital Libraries R. Shi, K. Maly, M. Zubair Department of Computer.
Cloud-based movie search web application with transaction service Group 14 Yuanfan Zhang Ji Zhang Zhuomeng Li.
Web browser Web server HTML request Scripted pagedatabase The following components will be used: Apache Jakarta Tomcat servlet engine Derby JavaServer.
CS122B: Projects in Databases and Web Applications Winter 2017
SharePoint 2010 Performance and Capacity Planning Best Practices
Parameter Sniffing in SQL Server Stored Procedures
Table General Guidelines for Better System Performance
CS122B: Projects in Databases and Web Applications Winter 2017
CS122B: Projects in Databases and Web Applications Winter 2017
CS122B: Projects in Databases and Web Applications Spring 2017
CS122B: Projects in Databases and Web Applications Winter 2017
CS122B: Projects in Databases and Web Applications Winter 2017
Oracle HTMLDB introduction
Parameter Sniffing in SQL Server Stored Procedures
Copyright © 2003 by Kyu-Young Whang
Avi Silberschatz Department of Computer Science Yale University
CS122B: Projects in Databases and Web Applications Spring 2017
CS122B: Projects in Databases and Web Applications Spring 2017
CS122B: Projects in Databases and Web Applications Winter 2017
CS122B: Projects in Databases and Web Applications Spring 2017
Armando Lacerda
Class XI - Computer Science ( Theory )
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2017
Table General Guidelines for Better System Performance
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Spring 2018
Armando Lacerda
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Spring 2018
Armando Lacerda
Do it now – PAGE 10 You will find your do it now task in your workbook – look for the start button! Sunday, 28 April 2019.
TMD Training Management Database at ASC
Armando Lacerda
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2019
Database administration
Database SQL.
Your computer is the client
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Winter 2018
Presentation transcript:

CS122B: Projects in Databases and Web Applications Winter 2019 Professor Chen Li Department of Computer Science UC Irvine Notes 05: Pagination, Caching, Sort, Search, Browse

Pagination Show results in different pages

SQL Support SELECT columns FROM table LIMIT 20 OFFSET 10

Embedding parameters in GET requests 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

Caching in Tomcat Store the query results as an object Later requests can be served using the cache without querying the database

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

Searching/Browsing

Different queries Browsing: SELECT * FROM Movies, genres, genres_in_movies WHERE genres.name = “action” Searching: SELECT * FROM Movies WHERE title LIKE “%term%”;

Same page of movie list Implement a Java Servlet program by taking a SQL query as a parameter Show the results of the query as a list of movies.

Sorting Frontend GET request includes a sorting parameter such as “DESC” and “ASCE”; Use “ORDER BY” in SQL to sort the results