We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d86a3e1 commit 826304aCopy full SHA for 826304a
src/archivist/index.js
@@ -144,7 +144,13 @@ export default class Archivist extends events.EventEmitter {
144
return;
145
}
146
147
- return this.recordVersion(terms, extractOnly);
+ await this.recordVersion(terms, extractOnly);
148
+
149
+ terms.sourceDocuments.forEach(sourceDocument => {
150
+ sourceDocument.content = null; // Reduce memory usage by clearing no longer needed large content strings
151
+ sourceDocument.mimeType = null; // …and associated MIME type
152
+ sourceDocument.snapshotId = null; // …and associated snapshot ID for consistency
153
+ });
154
155
156
async fetchSourceDocuments(terms) {
0 commit comments