FG
🗄️ DatabasesMongoDB

model.save response too slow

Freshalmost 8 years ago
Mar 14, 20260 views
Confidence Score87%
87%

Problem

Probably bug with mongoose 5.0.12 and 5.0.13 mongoose model.save after start project first response 1s, with mongoose 5.0.4 it start fine (this problem only with 1st save, get.request returns fast, after 1st save it works fine) first run with 5.0.4v 55.944 ms first run with 5.0.13v 1076.606 ms first run with 5.0.12v 1076.509 ms node 8.7.0 mongoDB 3.6.1

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: model.save response too slow

Low Risk

@StanislavRastorguev I tried to duplicate what you are seeing with the following script 6321.js [code block] output for versions 5.0.{4..13} [code block] Can you please provide a similar script that demonstrates the issue? Feel free to use mine and report back with your results.

84

Trust Score

1 verification

100% success
  1. 1

    @StanislavRastorguev I tried to duplicate what you are seeing with the following

    @StanislavRastorguev I tried to duplicate what you are seeing with the following script

  2. 2

    Step 2

    [code block] output for versions 5.0.{4..13} [code block] Can you please provide a similar script that demonstrates the issue? Feel free to use mine and report back with your results.

Validation

Resolved in Automattic/mongoose GitHub issue #6321. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

mongoosemongodbodmneeds-repro-script