22 Ekim 2021 Cuma

Wide-Column Veri Tabanları

Giriş
Açıklaması şöyle. Her satır farklı sütunlara sahip olabilir.
A wide-column store like Apache Cassandra or ScyllaDB allows rows (as minimal units of replication, analogous to rows as records in Postgres) to store a great, but most importantly, variable number of columns.
Veriye Erişim
Açıklaması şöyle
How you are going to fetch your data is one of the main ways to find the best database for your use case. If you are going to fetch data by key, then all you need is a key-value store (e.g. DynamoDB, Redis, S3, GCS).

In case you mostly fetch via key, but sometimes you also need to fetch by one or two other fields, then Wide-Column DBs (e.g.DynamoDB, Cassandra) may be right for you.

On the other hand if you will require to query by many different fields you can choose either Relational DB (e.g.MySQL, PostgreSQL) or Document DB (e.g.MongoDB, CouchDB, MySQL, PostgreSQ). Note that Document DBs don’t support well queries that require joining data from multiple documents.
Yani 
- Veriye eğer sadece key ile erişeceksek Key-Value Store kullanılabilir.
- Eğer veriye bir veya birkaç alana ile erişeceksek Wide-Column veri tabanı kullanılabilir.
- Eğer veriye herhangi bir  alan ile erişeceksek Relational (İlişkisel) veya Document veri tabanı kullanılabilir.

Document vs Wide Column Veri Tabanları
Her ikisi de esnek schema yeteneği sağlıyor. Ancak aralarında bir fark var
Wide Column Database şu işler için iyidir
- Frequent Writes. Yani infrequent update ve read anlamına gelir.
- Can Handle Large Data
- Not Suitable for Complex Queries

Document Database şu işler için iyidir
- Faster read. Sebebi ise Data denormalization kullanılması
- Not Suitable for Complex Queries

Hiç yorum yok:

Yorum Gönder