Mudanças entre as edições de "Comparação entre Banco de dados relacional e Elastic Search"
De Basef
Linha 40: | Linha 40: | ||
|- | |- | ||
|Inserção e atualização de registros/documentos inteiros | |Inserção e atualização de registros/documentos inteiros | ||
− | |insert into TYPE (id, atributo1, atributo2) values (ID, valor1, valor2); update TYPE set atributo1 = valor1, atributo2 = valor2 where id = ID; | + | |insert into TYPE (id, atributo1, atributo2) values (ID, valor1, valor2); |
+ | update TYPE set atributo1 = valor1, atributo2 = valor2 where id = ID; | ||
|PUT /index/type/id | |PUT /index/type/id | ||
|} | |} | ||
[[Category: Elastic Search]] | [[Category: Elastic Search]] |
Edição das 11h51min de 26 de julho de 2017
Termos
BD Relacional | Elastic Search |
---|---|
Instância | Index |
Tabela | Type |
Schema | Mapping |
Tupla (Registro) | Documento |
Coluna | Atributo |
Partição | Shard |
Dados
Ação | BD Relacional | Elastic Search |
---|---|---|
Verificando se registro/documento existe | select 1 from TYPE where exists id = ID; | HEAD /index/type/id |
Lendo um registro | select * from TYPE where id = ID; | GET /index/type/id |
Inserção e atualização de registros/documentos inteiros | insert into TYPE (id, atributo1, atributo2) values (ID, valor1, valor2);
update TYPE set atributo1 = valor1, atributo2 = valor2 where id = ID; |
PUT /index/type/id |