Whats is NoSQL
There is a local emulator
w
zip_code
The hierarchy of a json tree, is flatened as a list of keys and values:
/locations/0/contry: Germany
/locations/1/contry: Berlin
/exports: Examples
This structure is automatically indexed. But you can finetune with a custom policy
Non relational:
All offer have:
All data are stored as ARS (ATOM RECORD SEQUENCE)
It have relational with PostgreSQL API
Container throughput determines the number of request units available per second, and the partition key determines how documents are partitioned within the container. These are the two key characteristics of a container, so that you can create multiple containers within a database, each with their own particular throughput and partitioning needs.
Throughput currency is a blend of memory, cpu and IOPs. Request units are deterministics
You can provide throughput per container or database
Exceeding reserverd throughput limits will give a HTTP 429 error
Accumulate idle capacity over a rolling five-minute period to be spend on spikes
Limitations: physical parition with less than 3000 RU/s of throughput
autoscale: 0.012 /hr for 100 RU/sec per region Minimum 100 RU to 1000 RU/sec ~ USD 35.136
servless: USD 0.25 per 1 million RUs
A container is a single logic resource composed of multiple physical partitions that is created by CosmosDB behind the scenes on multiple servers
partition key determine how documents are grouped in logical partitions Every document have a maximum size of 2MB Partitions have a maximum size of 2GB
Partitions key should have similar number of documents and access to it. The best partition key gives uniform storage and throuputh between physical partitions
Queries that need to be run across the entire cluster and not just in one logical partition
Transactions are scoped by logical partition
You can use multiple keys do create subgroups in a logical partition, in that way making the logical partition capable of beeing in more than one physical partitiona so comporting more than 20Gb and avoiding cross cluster queries.