From 17530912ac8a944c593457a488b547d0ff0cf32f Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Tue, 17 Jul 2018 21:58:14 -0700 Subject: [PATCH 1/3] Add Arabic translation link (#177) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b22f83c0..fd894e4e 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 From 924570e4cbc80ea588d7206e2bc50b4aba2b20a9 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 19 Jul 2018 08:09:09 +0200 Subject: [PATCH 2/3] Add newlines - PEP8 style (#173) --- solutions/object_oriented_design/hash_table/hash_map.py | 2 +- solutions/system_design/query_cache/query_cache_snippets.py | 1 + solutions/system_design/web_crawler/web_crawler_snippets.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/solutions/object_oriented_design/hash_table/hash_map.py b/solutions/object_oriented_design/hash_table/hash_map.py index beceb773..33d9a35d 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 6ea3bac0..19d3f5cd 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 99d5a378..d84a2536 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): From bda2a5f93c9245204c6d039fd6a382589d641a01 Mon Sep 17 00:00:00 2001 From: Davis Date: Fri, 20 Jul 2018 12:46:35 +0800 Subject: [PATCH 3/3] zh-TW: Improve translations (#176) --- README-zh-TW.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README-zh-TW.md b/README-zh-TW.md index b608ec32..8d286a28 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