1.2. Pagination – Why? How do we make pagination feature?mysql_query(‘SELECT COUNT(*) FROM tbl WHERE col LIKE “%word%”’)> Get total record > Get toal page > Build page number list with a simple loopmysql_query(‘SELECT * FROM tbl WHERE col LIKE “%word%” LIMIT 0,20’)> Get data of current page (page 1, with 20 rows/page)Do you have the answer ?
1.3. Get enough data from remote server Send HEAD to detect 404 error from remote URL Read first bytes of remote file to detect image type,width/height
2.1. Where is Back-end?“80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all thecomponents in the page: images, stylesheets, scripts, Flash,etc. Reducing the number of components in turn reduces thenumber of HTTP requests required to render the page. Thisis the key to faster pages.”
3.1. What is De-normalization? Most of use live with Relational DB. What is normalization? Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy and dependency .(Wiki) What is De-normalization? Denormalization is the process of attempting to optimise the read performance of a database by adding redundant data or by grouping data. (Wiki)
3.2. How to de-normalize? Vertical Split. Pre-calculated value. Duplicate data.