---
title: "Mahmudul Hassan (@mahmudul5809) | Hashnode"
description: "Mahmudul Hassan (@mahmudul5809) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@mahmudul5809"
---

@mahmudul5809

# Mahmudul Hassan

@mahmudul5809 · Joined September 2024

## Comments

[hey thanks for the article . One question : you add await session.commit() in both get\_db\_session function also in router method like create\_ingredient . can you explain this please? Thanks](https://hashnode.com/posts/fastapi-sqlalchemy/648b2aeb8a365cbd5dbe45f9/comment/66f91df4e98dcdf683e56e5d)

Comment · Article · Sep 29, 2024 · [Patterns and Practices for using SQLAlchemy 2.0 with FastAPI](https://hashnode.com/posts/fastapi-sqlalchemy/648b2aeb8a365cbd5dbe45f9)
