---
title: "Discussion on \"How to fix MongoDB not creating Index\" | Hashnode"
description: "Discussion on \"How to fix MongoDB not creating Index\". Today I went into a typical MongoDB Issue again. When I created a Model and wrote a population Script, the Index never got applied and the Population was really slow. Gladly I found a fix.\nUsing syncIndexes()\nThe mongoose Libary has a Method to manua..."
url: "https://hashnode.com/posts/how-to-fix-mongodb-not-creating-index/5f4c08233a844e5996537a60"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to fix MongoDB not creating Index](https://willey3x37.hashnode.dev/how-to-fix-mongodb-not-creating-index?utm_source=hashnode&utm_medium=feed)

Today I went into a typical MongoDB Issue again. When I created a Model and wrote a population Script, the Index never got applied and the Population was really slow. Gladly I found a fix. Using syncIndexes() The mongoose Libary has a Method to manua...

Aug 30, 2020 · 1 min read · willey3x37.hashnode.dev  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#mongoose](https://hashnode.com/tag/mongoose)

## Written by

[Jannik](https://hashnode.com/@Willey3x37)

@Willey3x37 · Germany

  
[View profile](https://hashnode.com/@Willey3x37)

I'm a Full Stack React, Node JS and Java Developer. Studying Business Informatics

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
