mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
ch6-cloud: fix typo
This commit is contained in:
parent
cf29c63299
commit
a9604d69d4
@ -277,7 +277,7 @@ func deleteDocument(indexName string, typeName string, obj map[string]interface{
|
|||||||
|
|
||||||
因为 lucene 的性质,本质上搜索引擎内的数据是不可变的,所以如果要对 document 进行更新,实际上是按照 id 进行完全覆盖的操作,所以与插入的情况是一样的。
|
因为 lucene 的性质,本质上搜索引擎内的数据是不可变的,所以如果要对 document 进行更新,实际上是按照 id 进行完全覆盖的操作,所以与插入的情况是一样的。
|
||||||
|
|
||||||
使用 es 作为数据库使用时,需要注意,因为 es 有索引合并的操作,所以数据插入到 es 中到可以查询得到有一段时间(由 es 的 refresh_interval 决定)。所以千万不要把 es 当成强一致的关系型数据库来使用。
|
使用 es 作为数据库使用时,需要注意,因为 es 有索引合并的操作,所以数据插入到 es 中到可以查询的到需要一段时间(由 es 的 refresh_interval 决定)。所以千万不要把 es 当成强一致的关系型数据库来使用。
|
||||||
|
|
||||||
### 将 sql 转换为 DSL
|
### 将 sql 转换为 DSL
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user