Giter Site home page Giter Site logo

buzzfrog / azure-cosmosdb-gremlin-queries-with-statistics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luisbosquez/azure-cosmos-db-graph-gremlindotnet-custom

0.0 1.0 0.0 86 KB

Application to analyse CosmosDb Gremling queries

C# 100.00%

azure-cosmosdb-gremlin-queries-with-statistics's Introduction

Execute CosmosDB Gremlin Queries with Statistics

This application use a custom fork from TINKERPOP-1913. This fork includes the possibility to get statistics from the queries, such as consuming RU:s. (As the time of writing, this is not included in the offical Gremlin.NET package (3.4.0-rc1).

Steps to install

  1. Restore all nuget packages.
  2. Remove Gremlin.Net
  3. Install custom fork of Gremlin.Net using the local file ./gremlin.net_fork.3.3.2.nupkg
  4. copy dotenv-example to a new file with the name ".env" and edit the connection variables or add the environment variables to your shell.
  5. Enjoy.

Usage

./GremlinQueryWithStats "<query>" [true/false]

[true/false] If the result of the query should be displayed. (Default: false.)

Example

./GremlinQueryWithStats "g.V(['1','KLO-098'])"
Running this query: g.V(['1','KLO-098'])
x-ms-status-code - 200
x-ms-request-charge - 3,35
x-ms-total-request-charge - 3,35
x-ms-cosmosdb-graph-request-charge - 3,35
StorageRU - 3,35
Time to execute (incl. transfer) 894 ms

azure-cosmosdb-gremlin-queries-with-statistics's People

Contributors

buzzfrog avatar luisbosquez avatar

Watchers

 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.