Docsity

Architecture Diagram, Exercises of Computer science

Toggle sidebar
bg1
Analyst
(browser)
Dropbox
[ train.csv ] Backend — Flask / Python 3.11
ETL Pipeline
stream CSV · validate
haversine · classify zone
derive features · batch insert
9 optimisations
~115k rows/sec
Flask REST API
14 JSON endpoints
pagination · filters
custom QuickSort
frequency counter
SQLite
nyc_taxi.db
zones
time_slots
trips (fact)
trip_flags
cleaning_log
── 12 indexes ──
3NF normalised
Frontend — Cartographic Atlas
index.html
5 sheets
11 plates
filters
title block
graticule
colophon
dashboard.js
Chart.js bars
line charts
canvas heatmap
insight tables
sector register
API fetching
styles.css
paper grain
fold creases
plate borders
stream 1 MB chunks
INSERT cleaned
SELECT
HTTP GET /api/*JSON
browses
ETL optimisations:
· stdlib only, no pandas
· inlined haversine
· manual datetime parse
· Zeller's congruence
· deferred indexes
· 64 MB page cache
· batched executemany
DB design:
· 3NF normalised
· 12 indexes cover every
WHERE clause used
· 31 zones pre-seeded
· 168 time_slots seeded

Partial preview of the text

Download Architecture Diagram and more Exercises Computer science in PDF only on Docsity!

Analyst (browser)

Dropbox

[ train.csv ]

Backend — Flask / Python 3.

ETL Pipeline stream CSV · validate haversine · classify zone derive features · batch insert 9 optimisations ~115k rows/sec

Flask REST API 14 JSON endpoints pagination · filters custom QuickSort frequency counter

SQLite

nyc_taxi.db zones time_slots trips (fact) trip_flags cleaning_log ── 12 indexes ── 3NF normalised

Frontend — Cartographic Atlas

index.html 5 sheets 11 plates filters title block graticule colophon

dashboard.js Chart.js bars line charts canvas heatmap insight tables sector register API fetching

styles.css paper grain fold creases plate borders

stream 1 MB chunks INSERT cleaned

SELECT

JSON HTTP GET /api/*

browses

ETL optimisations: · stdlib only, no pandas · inlined haversine · manual datetime parse · Zeller's congruence · deferred indexes · 64 MB page cache · batched executemany

DB design: · 3NF normalised · 12 indexes cover every WHERE clause used · 31 zones pre-seeded · 168 time_slots seeded