Questions tagged [wiredtiger]

A key/value database engine which is also part of mongo 3.0

wiredtiger logo

WiredTiger provides an ordered mapping from string keys to string values, columns support, transactions, async and bulk operations, custom collators, extractors and data sources.

See WiredTiger website

170 questions
1
vote
1 answer

directoryperDB is not working under WiredTiger storage Engine

When I enable the directoryperdb option in the mongo.conf file, mongodb server service doesn't start. It says directotyperdb value can't be true. These are the mongo logs:- 2020-03-16T15:37:55.300+0530 I CONTROL [main] Automatically disabling TLS…
1
vote
0 answers

Different realation between dataSize and storageSize in different databases

I am using MongoDB 4.0 and I have 2 different databases as below: First one with this stats "collections" : 527, "views" : 0, "objects" : 20512406, "avgObjSize" : 145.463036271805, "dataSize" : 2983796858.0, "storageSize" :…
Mohammad Taherian
  • 1,622
  • 1
  • 15
  • 34
1
vote
1 answer

How to change Mongodb`s default storage engine(wiredtiger) to my revised wiredtiger(git source build)?

I am going to modify the wiredtiger code to test the ycsb benchmark to improve performance. Through this wiki doc (https://github.com/wiredtiger/wiredtiger/wiki/Btree-vs-LSM), I was able to test the basic wiredtiger code and the modified code at…
1
vote
1 answer

What is MongDB (WiredTiger) update query's default lock wait time?

I have embedded sub documents array in MongoDB document and multiple users can try add sub documents into the array. I use update($push) query to add document into array, but if multiple users try to add entry from UI, how do I make sure second…
Nar
  • 75
  • 1
  • 6
1
vote
1 answer

It seems that mongoDB compression does not work properly

Nginx + php-fpm + mongoDB(+mongodb php-lib) trying to compare the compression rate of mongoDB but, the results are not as expected. Here are my experiments. /etc/mongod.conf # mongod.conf //default setting # for documentation of all options,…
Nullfi
  • 49
  • 7
1
vote
0 answers

MongoDB crash with Slow WT transaction on production environment

Issue Behavior MongoDB crashes frequently on production environment. at least once in a day.Only thing comes up in log before every crash is as below: "Slow WT Transaction". Suspecting logs before crash [grep]: 2018-12-05T16:59:02.569+0000 D…
Jay
  • 203
  • 1
  • 8
1
vote
0 answers

MongoDB read while writing

I am fetching a data from an different APIs. I process the data and make a json file of size ~1GB. I truncate the document and insert json file in a MongoDB document. Due to nature of my app, I have to do this every hour. The insertion takes about…
Amsal N
  • 201
  • 2
  • 10
1
vote
2 answers

mongo upgrade and now my data is incompatable

I did a brew update/upgrade today on my mac and then mongodb caused my mac to crash badly. I'm trying now to get my data into an Atlas cluster. All I have now are my /data/db files. I need to dump them to port them to Atlas. Rather than mess up…
1
vote
2 answers

In memory storage engine is not faster than wired tiger

I'm running a query that returns a lot of data. It looks up 916 documents, each of them having a large data field (around 5MB). The query looks like this: db.collection.find( {'name': somename, 'currency': mycurrency, 'valuation_date': {'$in':…
Nickpick
  • 6,163
  • 16
  • 65
  • 116
1
vote
1 answer

Restore corrupt mongo db from WiredTiger files

So here is my scenario: Today my server was restarted by our hoster (acpi shutdown). My mongo database is a simple docker container (mongo:3.2.18) Because of an unknown reason the container wasn't restarted on reboot (restart: always was set…
CodeBrauer
  • 2,690
  • 1
  • 26
  • 51
1
vote
0 answers

engine:wiredTiger in /etc/mongod.conf does not start Mongo DB 3.2 on Centos 7.4

I freshly installed Mongo DB 3.2 on Centos 7.4 and below was the configuration # mongod.conf # for documentation of all options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # where to write logging data. systemLog: …
Ankur Soni
  • 5,725
  • 5
  • 50
  • 81
1
vote
1 answer

MongoDB `count` returns less then number of entities in `find` result

My test looks like > db.MyCollection.count() 8 > db.MyCollection.find() { "_id" : ObjectId("58f5cfc65faf1122b63dca3f"), /* ... */ } { "_id" : ObjectId("58f5cfc65faf1122b63dca40"), /* ... */ } { "_id" : ObjectId("58f5ebc95faf11638526d743"), /* ... */…
Grigorii Sokolik
  • 388
  • 1
  • 2
  • 14
1
vote
1 answer

MongoDB Fails Because Key Too Large To Index

I have been attempting to save a MongoDB document, and am getting a strange error concerning the key being too large to index. I have provided an example of a functional document below, as well as one that creates an error: Functional: {…
Quontas
  • 400
  • 1
  • 3
  • 19
1
vote
1 answer

What does ... means in c code

I'm reading the code of wiredtiger. I see a function definition as WT_CURSOR::set_key(WT_CURSOR * cursor, ...) what does the '...' means here? how can the compiler compile such code? Thanks
zhihuifan
  • 1,093
  • 2
  • 16
  • 30
1
vote
1 answer

how to restore data by mongodb journal file?

I open the journal file "WiredTigerLog.0000000003" by "Sublime",but the content is garbled. Luckily, I can identify the data I deleted from the garbled content! I have searched for an afternoon, but still do not know how to recover data from the…
aweiu
  • 390
  • 4
  • 12