Answered by
vkarpov15
Jan 30, 2022
Replies: 1 comment
|
Not currently. You should be able to reduce the memory usage by deleting the model before creating a new one. mongoose.deleteModel('TestModel');
const mymodel = mongoose.model('TestModel', TestSchema, collectionName); |
0 replies
Answer selected by
Uzlopak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Not currently. You should be able to reduce the memory usage by deleting the model before creating a new one.