Sign inSign up

objectrocket/variety

By objectrocket

Updated almost 11 years ago

A schema analyzer for MongoDB

Image
1

2.9K

objectrocket/variety repository overview

Meet Variety, a Schema Analyzer for MongoDB

This lightweight tool helps you get a sense of your application's schema, as well as any outliers to that schema. Particularly useful when you inherit a codebase with data dump and want to quickly learn how the data's structured. Also useful for finding rare keys.

Example

$ docker run objectrocket/variety test/foo --host db.example.com --quiet

+------------------------------------------------------------------+
| key                | types              | occurrences | percents |
| ------------------ | ------------       | ----------- | -------- |
| _id                | ObjectId           |           5 |    100.0 |
| name               | String             |           5 |    100.0 |
| bio                | String             |           3 |     60.0 |
| birthday           | String             |           2 |     40.0 |
| pets               | Array(4),String(1) |           5 |     40.0 |
| someBinData        | BinData-old        |           1 |     20.0 |
| someWeirdLegacyKey | String             |           1 |     20.0 |
+------------------------------------------------------------------+

Github

Tag summary

Content type

Image

Digest

Size

68.8 MB

Last updated

almost 11 years ago

docker pull objectrocket/variety