Git Product home page Git Product logo

azure-cosmos-db-partition-key-advisor's Introduction

Partition Key Advisor

Data analyzing tool for helping customers choose the best partition key for their Cosmos DB collections.

Features

This project framework provides the following features:

  • Schema discovery and cardinality assesment
  • Display of storage distribution based on logical partition keys
  • Display of distinctness of keys at a given second
  • Recommendation based on cardinality, distinctness/sec and storage distribution for write-heavy workloads

Getting Started

Before you can run this sample, you must have the following prerequisites:

  • Visual Studio
  • Azure SDK for Visual Studio
  • .NET Core 2.2. SDK

From Visual Studio, open the PartitionKeyAdvisor.sln file from the root directory.

In Visual Studio Build menu, select Build Solution (or Press F6).

You can substitute the endpoint and primary key in the appsettings.json with your Cosmos DB account values including the endpointUri and primary key information.

You can now run and debug the application locally by pressing F5 in Visual Studio.

Demo

This demo is included to show you how to use the project.

To run the demo using existing configurations, follow these steps:

  1. Build project as stated above, and add your connection string/keys found in your Azure Account.
  2. To test a collection: run it on a DatabaseID and CollectionID of your choosing.
  3. For candidate partition keys, choose partition keys available within your collection: ex."make_id", "make_is_common", "make_country".

azure-cosmos-db-partition-key-advisor's People

Contributors

luisbosquez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.