Put the documents MTBL back into LMDB

We makes sure to write the documents into a file before
memory mapping it and putting it into LMDB, this way we avoid
moving it to RAM
This commit is contained in:
Clément Renault 2020-08-28 15:38:05 +02:00
parent d784d87880
commit 0a44ff86ab
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
10 changed files with 100 additions and 110 deletions

View file

@ -63,8 +63,5 @@ $('#docs-count').text(function(index, text) {
// Make the database a little bit easier to read
$('#db-size').text(function(index, text) {
let arr = text.split("+");
let database_size = filesize(parseInt(arr[0]));
let documents_size = filesize(parseInt(arr[1]));
return `${database_size} + ${documents_size}`
return filesize(parseInt(text))
});