ClickHouse Intro

22

Transcript of ClickHouse Intro

Page 1: ClickHouse Intro

51234567891234567891Eurobasket-Greece-BosniaandHerzegovina12011-09-010103026274717 52349852595636319580ConsultingTaxassessmentAccountingLaw132011-09-020103206320881 52349852595636234232AccountingTaxassessment32011-09-0401034456320890

WatchID53855214893543506625385521490329509958538552148995370605453855214904767816385385521490583269446538552149021886880653855214914378506945385521491090174022538552149079266925453855214904206951105385521491532181574538552149155969440653855214914596250305385521492275175494538552149278131821453855214927100273345385521492955615302538552149370875911053855214945064346305385521493104611398JavaEnable10100010111111010011TitleYandexAnnouncements-InvestorRelations-YandexYandexmdashContactusmdashMoscowYandexmdashMissionRuYandexmdashHistorymdashHistoryofYandexYandexFinancialReleases-InvestorRelations-YandexYandexmdashLocationsYandexBoardofDirectors-CorporateGovernance-YandexYandexmdashTechnologiesGoodEvent11111111111111111111EventTime2016-05-180519202016-05-180810202016-05-180738002016-05-180113082016-05-180004062016-05-180421302016-05-180034162016-05-180735492016-05-181141592016-05-18011332

ltremote_serversgtltlogsgtltshardgtltweightgt1ltweightgt ltinternal_replicationgtfalseltinternal_replicationgt ltreplicagt lthostgtexample01-01-1lthostgt ltportgt9000ltportgt ltreplicagt ltreplicagt lthostgtexample01-01-2lthostgt ltportgt9000ltportgt ltreplicagtltshardgtltshardgtltweightgt2ltweightgt ltinternal_replicationgtfalseltinternal_replicationgt ltreplicagt lthostgtexample01-02-1lthostgt ltportgt9000ltportgt ltreplicagt ltreplicagt lthostgtexample01-02-2lthostgt

ExamplewithoutsamplingsupportMergeTree(EventDate(CounterIDEventDate)8192)

ExamplewithsamplingsupportMergeTree(EventDateintHash32(UserID)(CounterIDEventDateintHash32(UserID))

Page 2: ClickHouse Intro

WatchID53855214893543506625385521490329509958538552148995370605453855214904767816385385521490583269446538552149021886880653855214914378506945385521491090174022538552149079266925453855214904206951105385521491532181574538552149155969440653855214914596250305385521492275175494538552149278131821453855214927100273345385521492955615302538552149370875911053855214945064346305385521493104611398JavaEnable10100010111111010011TitleYandexAnnouncements-InvestorRelations-YandexYandexmdashContactusmdashMoscowYandexmdashMissionRuYandexmdashHistorymdashHistoryofYandexYandexFinancialReleases-InvestorRelations-YandexYandexmdashLocationsYandexBoardofDirectors-CorporateGovernance-YandexYandexmdashTechnologiesGoodEvent11111111111111111111EventTime2016-05-180519202016-05-180810202016-05-180738002016-05-180113082016-05-180004062016-05-180421302016-05-180034162016-05-180735492016-05-181141592016-05-18011332

ltremote_serversgtltlogsgtltshardgtltweightgt1ltweightgt ltinternal_replicationgtfalseltinternal_replicationgt ltreplicagt lthostgtexample01-01-1lthostgt ltportgt9000ltportgt ltreplicagt ltreplicagt lthostgtexample01-01-2lthostgt ltportgt9000ltportgt ltreplicagtltshardgtltshardgtltweightgt2ltweightgt ltinternal_replicationgtfalseltinternal_replicationgt ltreplicagt lthostgtexample01-02-1lthostgt ltportgt9000ltportgt ltreplicagt ltreplicagt lthostgtexample01-02-2lthostgt

ExamplewithoutsamplingsupportMergeTree(EventDate(CounterIDEventDate)8192)

ExamplewithsamplingsupportMergeTree(EventDateintHash32(UserID)(CounterIDEventDateintHash32(UserID))

Page 3: ClickHouse Intro

ltremote_serversgtltlogsgtltshardgtltweightgt1ltweightgt ltinternal_replicationgtfalseltinternal_replicationgt ltreplicagt lthostgtexample01-01-1lthostgt ltportgt9000ltportgt ltreplicagt ltreplicagt lthostgtexample01-01-2lthostgt ltportgt9000ltportgt ltreplicagtltshardgtltshardgtltweightgt2ltweightgt ltinternal_replicationgtfalseltinternal_replicationgt ltreplicagt lthostgtexample01-02-1lthostgt ltportgt9000ltportgt ltreplicagt ltreplicagt lthostgtexample01-02-2lthostgt

ExamplewithoutsamplingsupportMergeTree(EventDate(CounterIDEventDate)8192)

ExamplewithsamplingsupportMergeTree(EventDateintHash32(UserID)(CounterIDEventDateintHash32(UserID))

Page 4: ClickHouse Intro

ExamplewithoutsamplingsupportMergeTree(EventDate(CounterIDEventDate)8192)

ExamplewithsamplingsupportMergeTree(EventDateintHash32(UserID)(CounterIDEventDateintHash32(UserID))

Page 5: ClickHouse Intro