Oct. 6, 2023, 3:48 p.m. | Deon Pillsbury

DEV Community dev.to


  • Types of Databases

  • Local Setup


  • Define your Data Model


    • One-to-One

    • One-to-Few




  • Common Operations using Python


    • Insert a Document

    • List Documents

    • Update a Document

    • Delete a Document




  • Indexes


    • Single Field Index

    • Unique Index

    • TTL Index

    • Compound Index

    • Get Collection Indexes







Types of Databases


There are two main types of databases that can be used in applications and these include NoSQL databases and SQL databases. SQL databases are relational and structured and usually consist of tables of rows and columns. NoSQL databases …

applications collection data database databases data model document documents guide index list mongodb operations programming python setup types

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Sr. BI Analyst

@ AkzoNobel | Pune, IN