Aerospike-Architecture系列之資料模型(Data Model),aerospike

來源:互聯網
上載者:User

Aerospike-Architecture系列之資料模型(Data Model),aerospike
Data Model(資料模型)

Aerospike採用無模式(schema-less)資料模型,這意味著儲存在庫中的資料不符合嚴格模式。

這提供了你在Aerospike中儲存資料的靈活性-資料修改不需要修改schema,庫中已存在的資料也不需要符合指定的schema

Aerospike的無模式(schema-less)資料模型允許動態添加新類型的bin。儘管如此,仍然需要遵守bin名稱與資料的對應關係。應用程式必須利用bin的一致性來保障查詢和彙總的正確性。

How Data is Organized(資料如何組織)
Storage architectureNamespaces(命名空間)

命名空間(namespace)是資料最頂層的容器。就像在標準的RDBMS中一樣,namespace可以是資料庫的一部分也可以是一組資料庫,這決定於你如何儲存和管理namespace中的資料。

一個namespace包含記錄(records),索引(indexes )及策略(policies)。策略決定namespace的行為,包括:

  • 資料如何儲存:儲存於記憶體或是磁碟
  • 一條記錄存在多少個副本
  • 記錄何時到期

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.