???????????????SQLite????????????????????????????е????????????????????У?????г?5???????????????????????????2016?????? SQLite??
??????????
?????????????Postgres???????????????????????????????????????????????????Ч?????С???????????????????????????…??????????????????????????????????μ?????????????????????????????????????????????????????????????????????????С??????????????????? postgres ?????洢?????????????????????????????????????????
??????????????????????????????? Postgres ????MySQL?? Oracle?? SQL Server????????????????????????????????????SQLite???й漲???????????????????????????????????????????SQLite db??????????
????SQLite??????????????——???????????????????????????????? + ????????????????????????汾?з??????????????????SQLite3.0.0?汾???2004???????汾?????????????????????? SQLite 3.10.0?汾??????????????????????????U????????Я?????????????????????????????????????????dropbox????С?????????????????????Щ????????????????????????S3?????????????????????o??????????????????跢?????????????????????????????????????????????????????????У???????????????SQLite??????????
?????????SQLite?????????????? SQLite????????????????????????????? ?? ????????????????????????????????????????????????????????????????????????????????????????Щ???????
????????????????????????????
????SQLite?????????????????????????????????????????????????????????????1???????????SQLite??? json1????????JSON????????????????? Python????????????£???????????£???SQLite????????????????????????????汾?????а??????BM25??????????
?????????????μ?????SQLite????????????????????????Ч????3.8.11?汾???????????????????????
????SQLite????????? 3.8.0?汾???????????? 3.3.9?汾????3????
??????????????Щ?仯??????SQLite??????? bug??SQLite???????????????????????????????????????????????????????SQLite??β??????澭????????HackerNews???
????????????????
??????????????????????????????????SQLite?????????ó?????????????????????????????????????????ó????????????Python?????SQLite??????pysqlite???????????apsw????APIs????????????SQL?????????????????????apsw?????????????APIs?????????????????????
??????????????????????????????????????д洢 URLs??????????????????????????——?????????ò???????????????д??????????????????????????????????????????????????????ó?????????н?????????????SQLite?????????Python?ж???????????????????????????????????????????????
????from urlparse import urlparse
????def hostname(url):
????return urlparse(url).netloc
????conn = sqlite3.connect('my-database.db')
????conn.create_function('hostname'?? 1?? hostname)  # name?? num_params?? func
????SELECT hostname(mytable.url)?? COUNT(mytable.id) AS ct
????FROM mytable
????GROUP BY hostname(mytable.url)
????ORDER BY ct DESC;
????????????????????????????? 0..n ????????????????????????????????????????????Щ????????????????????????????Щ???????????
???????????????apsw????????????????ж????????????????????????????SQL??????????????????????????????????????????д?????????????????????????????SQL??????????Redis.
???????????д?????????????к???????0..n?н???????????????????????????????????????????????????????С???д???????sqlite vtfunc???????д??Щ??????????ü????????
????SQLite????????涼??????????ó????????
????Lightning fast
????SQLite????????????????????????????У?????????в???????????????????????á??????????????????У????????????Э?飬???л?????????UNIX???????? ??SQLite??????????????????Ч????????豸?????С?SQLite?????????????????????????????????????
????SQLite???????????????????????????????????д???????д???????????????飬??е??????????????????????????????????????????