Files
@ a3bc9e0f40b2
Branch filter:
Location: EGD-mine/readme.md - annotation
a3bc9e0f40b2
1.0 KiB
text/markdown
optimalizace: zapomenuté indexy na cizích klíčích v databázi
c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 c41a90c1ee53 bc762fdfee0f bc762fdfee0f bc762fdfee0f bc762fdfee0f bc762fdfee0f bc762fdfee0f bc762fdfee0f bc762fdfee0f bc762fdfee0f | # Zpracování a dotazování dat z EGD
## egd.py
Funkce pro načtení dat vyexportovaných z veřejného rozhraní EGD a jejich konverzi do SQLite databáze.
## setup.py
Načte soubory tlist.html a all.hst (z aktivního adresáře) a vytvoří soubor egd.db s databází.
## queries.py
Uložené dotazy.
## Schéma databáze
### tournaments
* (text) code
* (text) datum
* (text) class
* (integer) round_count
* (integer) player_count
* (text) country_code
* (text) description
### players
* (integer) pin
* (text) name
### players_performance
Co se vztahuje zároveň k hráči a k turnaji. Většina položek all.hst.
* (integer) pin
* (text) tournament_code
* (text) country_code
* (text) club
* (integer) win_count
* (integer) game_count
* (real) rating_before
* (real) rating_after
### players_performance_tournaments
Pohled na tournaments a players_performance.
* (integer) pin
* (text) p_country_code - země hráče
* (real) rating_before
* (real) rating_after
* (text) t_country_code - lokace turnaje
* (text) datum
|