Data Model

When using Amazon SimpleDB, you organize your structured data in domains within which you can put data, get data, or run queries.

Domains consist of items which are described by attribute name-value pairs. For a better understanding, consider the spreadsheet model shown in the following image.

The components correspond to each part of a spreadsheet:

Unlike a spreadsheet, however, multiple values can be associated with a cell. For example, an item can have both the color value red and blue. Additionally, Amazon SimpleDB does not require the presence of specific attributes. You can create a single domain that contains completely different product types. For example, the following table contains clothing, automotive parts, and motorcycle parts.

IDCategorySubcat.NameColorSizeMakeModel
Item_01ClothesSweaterCathair SweaterSiameseSmall, Medium, Large  
Item_02ClothesPantsDesigner JeansPaisley Acid Wash30x32, 32x32, 32x34  
Item_03ClothesPantsSweatpantsBlue, Yellow, PinkLarge  
Item_04Car PartsEngineTurbos  AudiS4
Item_05Car PartsEmissions02 Sensor  AudiS4
Item_06Motorcycle PartsBodyworkFender EliminatorBlue YamahaR1
Item_07Motorcycle Parts, ClothingClothingLeather PantsBlackSmall, Medium, Large  

Regardless of how you store your data, Amazon SimpleDB automatically indexes your data for quick and accurate retrieval.