You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/10/06 12:04:26 UTC
[camel-performance-tests] 03/03: Mongo to Kafka: Distinguish
Scripts, 50000 dimension and 50000 entries
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch mongo-kafka-script
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git
commit 27b51972c4abc07afa0127201c5340c2b8017042
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 6 14:03:57 2021 +0200
Mongo to Kafka: Distinguish Scripts, 50000 dimension and 50000 entries
---
profiling/mongo-kafka/script/populate-50000.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/profiling/mongo-kafka/script/populate-50000.js b/profiling/mongo-kafka/script/populate-50000.js
new file mode 100644
index 0000000..bb90596
--- /dev/null
+++ b/profiling/mongo-kafka/script/populate-50000.js
@@ -0,0 +1,5 @@
+use test
+db.createCollection("log", { capped : true, size : 5242880, max : 50000 } )
+for (var i = 1; i <= 30000; i++) {
+ db.log.insert({ item: "canvas", qty: 100, tags: ["cotton"], size: { h: 28, w: i, uom: "cm" } })
+}