mongodb-schema
Advanced tools
Comparing version
@@ -32,5 +32,5 @@ var es = require('event-stream'); | ||
if (type.name === 'String') { | ||
// crop strings at 10k characters | ||
if (value.length > 10000) { | ||
value = value.slice(0, 10000); | ||
// crop strings at 1k characters | ||
if (value.length > 1000) { | ||
value = value.slice(0, 1000); | ||
} | ||
@@ -63,4 +63,3 @@ } | ||
} else { | ||
type.values = _.get(type, 'values', type.name === 'String' ? | ||
new Reservoir(100) : new Reservoir(10000)); | ||
type.values = _.get(type, 'values', new Reservoir(1000)); | ||
addToValue(type, value); | ||
@@ -67,0 +66,0 @@ } |
{ | ||
"name": "mongodb-schema", | ||
"description": "Infer the probabilistic schema for a MongoDB collection.", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"author": "Thomas Rueckstiess <thomas@rueckstiess.net>", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
57313
-0.1%1389
-0.07%