diff --git a/README-zh-TW.md b/README-zh-TW.md index b608ec3277a6568643a6447ddba58ebca00240e9..8d286a28f1d44048b2131e2b7d3e1bc1929fc9dc 100644 --- a/README-zh-TW.md +++ b/README-zh-TW.md @@ -623,7 +623,7 @@ DNS 是階層å¼çš„æž¶æ§‹ï¼Œä¸€éƒ¨åˆ†çš„ DNS 伺æœå™¨ä½æ–¼é ‚層,當查詢 其餘é¡å¤–的好處有: -* **SSL 終çµ** - å°‡å‚³å…¥çš„è«‹æ±‚è§£å¯†ï¼Œä¸¦ä¸”åŠ å¯†ä¼ºæœå™¨çš„回應,如æ¤ä¸€ä¾†å¾Œç«¯ä¼ºæœå™¨å°±ä¸éœ€è¦é€²è¡Œé€™äº›é«˜åº¦æ¶ˆè€—資æºçš„願算 +* **SSL 終çµ** - å°‡å‚³å…¥çš„è«‹æ±‚è§£å¯†ï¼Œä¸¦ä¸”åŠ å¯†ä¼ºæœå™¨çš„回應,如æ¤ä¸€ä¾†å¾Œç«¯ä¼ºæœå™¨å°±ä¸éœ€è¦é€²è¡Œé€™äº›é«˜åº¦æ¶ˆè€—資æºçš„é‹ç®— * ä¸éœ€è¦åœ¨æ¯ä¸€å°æ©Ÿå™¨ä¸Šå®‰è£ [X.509 憑è‰](https://en.wikipedia.org/wiki/X.509)。 * **Session ä¿å˜** - 發行 cookieï¼Œä¸¦å°‡ç‰¹å®šä½¿ç”¨è€…çš„è«‹æ±‚è·¯ç”±åˆ°åŒæ¨£çš„後端伺æœå™¨ä¸Šã€‚ @@ -918,7 +918,7 @@ SQL 優化是一個涵蓋範åœå¾ˆå»£çš„主題,有許多相關的 [åƒè€ƒæ›¸ * ç•¶ä½ ä½¿ç”¨ (`SELECT`, `GROUP BY`, `ORDER BY`, `JOIN`) 這些æ“ä½œçš„å°æ‡‰æ¬„ä½å¦‚果有使用索引就會查詢更快。 * 索引通常是使用平衡 [B 樹](https://en.wikipedia.org/wiki/B-tree) 表示,這樣å¯ä»¥ä¿è‰è³‡æ–™æ˜¯æœ‰åºçš„,並å…è¨±åœ¨å°æ•¸æ™‚間內進行æœå°‹ã€å¾ªåºè¨ªå•ä»¥åŠæ’å…¥ã€åˆªé™¤ç‰æ“作。 * è¨å®šç´¢å¼•時,會將資料放置於記憶體ä¸ï¼Œæœƒä½”用更多記憶體空間。 -* 寫入æ“ä½œæœƒè®Šæ…¢ï¼Œå› ç‚ºæ‰€éš±è«±éœ€è¦æ›´æ–°ã€‚ +* 寫入æ“ä½œæœƒè®Šæ…¢ï¼Œå› ç‚ºç´¢å¼•æœƒéœ€è¦æ›´æ–°ã€‚ * 當讀å–大é‡è³‡æ–™æ™‚,ç¦ç”¨ç´¢å¼•å†è®€å–,之後å†é‡æ–°å»ºç«‹ç´¢å¼•,這樣也許會更快。 ##### é¿å…é«˜æˆæœ¬çš„ Join æ“作 @@ -1065,7 +1065,7 @@ Google 發表了第一個列儲å˜åž‹è³‡æ–™åº« [Bigtable](http://www.read.seas.h * éžé—œé€£å¼è³‡æ–™ * ä¸éœ€è¦è¤‡é›œçš„ joins * å„²å˜ TB (或 PB) ç‰ç´šçš„資料 -* é«˜è³‡æ–™å¯†é›†äº®çš„å·¥ä½œè² è¼‰ +* 高資料密集é‡çš„å·¥ä½œè² è¼‰ * IOPS 的高åžåé‡ é©åˆä½¿ç”¨ NoSQL 的範例: @@ -1121,7 +1121,7 @@ Redis 還有以下é¡å¤–的功能: ä½ å¯ä»¥å¿«å–的級別有好幾種,大致上分為兩類:**資料庫查詢** å’Œ **物件**: * 記錄級別 -* 查詢åŠåˆ¥ +* 查詢級別 * 完整的å¯åºåˆ—化物件 * 完整的 HTML diff --git a/README.md b/README.md index b22f83c0d63ebe9f80dd048aa43a0e28fbfcbfa0..fd894e4edd032e93fcad9e5c05c811b83cc068b8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -*[English](README.md) ∙ [日本語](README-ja.md) ∙ [ç®€ä½“ä¸æ–‡](README-zh-Hans.md) ∙ [ç¹é«”䏿–‡](README-zh-TW.md) | [Brazilian Portuguese](https://github.com/donnemartin/system-design-primer/issues/40) ∙ [Greek](https://github.com/donnemartin/system-design-primer/issues/130) ∙ [Italian](https://github.com/donnemartin/system-design-primer/issues/104) ∙ [Korean](https://github.com/donnemartin/system-design-primer/issues/102) ∙ [Persian](https://github.com/donnemartin/system-design-primer/issues/110) ∙ [Polish](https://github.com/donnemartin/system-design-primer/issues/68) ∙ [Russian](https://github.com/donnemartin/system-design-primer/issues/87) ∙ [Spanish](https://github.com/donnemartin/system-design-primer/issues/136) ∙ [Turkish](https://github.com/donnemartin/system-design-primer/issues/39) ∙ [Vietnamese](https://github.com/donnemartin/system-design-primer/issues/127) | [Add Translation](https://github.com/donnemartin/system-design-primer/issues/28)* +*[English](README.md) ∙ [日本語](README-ja.md) ∙ [ç®€ä½“ä¸æ–‡](README-zh-Hans.md) ∙ [ç¹é«”䏿–‡](README-zh-TW.md) | [Arabic](https://github.com/donnemartin/system-design-primer/issues/170) ∙ [Brazilian Portuguese](https://github.com/donnemartin/system-design-primer/issues/40) ∙ [Greek](https://github.com/donnemartin/system-design-primer/issues/130) ∙ [Italian](https://github.com/donnemartin/system-design-primer/issues/104) ∙ [Korean](https://github.com/donnemartin/system-design-primer/issues/102) ∙ [Persian](https://github.com/donnemartin/system-design-primer/issues/110) ∙ [Polish](https://github.com/donnemartin/system-design-primer/issues/68) ∙ [Russian](https://github.com/donnemartin/system-design-primer/issues/87) ∙ [Spanish](https://github.com/donnemartin/system-design-primer/issues/136) ∙ [Turkish](https://github.com/donnemartin/system-design-primer/issues/39) ∙ [Vietnamese](https://github.com/donnemartin/system-design-primer/issues/127) | [Add Translation](https://github.com/donnemartin/system-design-primer/issues/28)* # The System Design Primer diff --git a/solutions/object_oriented_design/hash_table/hash_map.py b/solutions/object_oriented_design/hash_table/hash_map.py index beceb7738a2a5f340406a7118f3d06757159ced9..33d9a35de1539405e0aa90744bde7209df50b60f 100644 --- a/solutions/object_oriented_design/hash_table/hash_map.py +++ b/solutions/object_oriented_design/hash_table/hash_map.py @@ -35,4 +35,4 @@ class HashTable(object): if item.key == key: del self.table[hash_index][index] return - raise KeyError('Key not found') \ No newline at end of file + raise KeyError('Key not found') diff --git a/solutions/system_design/query_cache/query_cache_snippets.py b/solutions/system_design/query_cache/query_cache_snippets.py index 6ea3bac00ba72a173f37a99c7abe92efe6d06122..19d3f5cdd63043cb373d1d279388ab46c5f40bc9 100644 --- a/solutions/system_design/query_cache/query_cache_snippets.py +++ b/solutions/system_design/query_cache/query_cache_snippets.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- + class QueryApi(object): def __init__(self, memory_cache, reverse_index_cluster): diff --git a/solutions/system_design/web_crawler/web_crawler_snippets.py b/solutions/system_design/web_crawler/web_crawler_snippets.py index 99d5a37875e3412d29c001179a4db355fc5f3477..d84a25362ec14f72702cd85e83fbfa3f837d53c8 100644 --- a/solutions/system_design/web_crawler/web_crawler_snippets.py +++ b/solutions/system_design/web_crawler/web_crawler_snippets.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- + class PagesDataStore(object): def __init__(self, db):