Name | NoSQL - Column Store | RDBMS - Columnar |
Description | Wide-column store based on Apache Hadoop and on concepts of BigTable | Columnar RDBMS optimized for Big Data analytics |
Database model | Wide column store | Relational DBMS |
Data scheme | schema less | yes |
Typing | no | yes |
Secondary indexes | no | yes |
SQL | no | yes |
Server-side scripts | yes | yes |
Triggers | yes | yes |
Partitioning methods | Sharding | shared disk or shared nothing architectures with SAP IQ Multiplexer |
MapReduce | yes | no |
Consistency concepts | Immediate Consistency | Immediate Consistency |
Foreign keys | no | yes |
Transaction concepts | no | ACID |
Concurrency | yes | yes |
Durability | yes | yes |
User concepts | Access Control Lists (ACL) | fine grained access rights according to SQL-standard |
We'll explore scenarios involving nested queries, aggregations, custom scoring, and hybrid queries that combine multiple search criteria. 1. Nested Queries ElasticSearch Example: ElasticSearch supports nested documents, which allows for querying on nested fields with complex conditions. Query: Find products where the product has a review with a rating of 5 and the review text contains "excellent". { "query": { "nested": { "path": "reviews", "query": { "bool": { "must": [ { "match": { "reviews.rating": 5 } }, { "match": { "reviews.text": "excellent" } } ] } } } } } Redis Limitation: Redis does not support nested documents natively. While you can store nested structures in JSON documents using the RedisJSON module, querying these nested structures with complex condi...
Comments