Cleaner Code, Better Queries: SQLAlchemy, ORMs and asyncio
- Track:
- Data preparation and visualisation (2025)
- Type:
- Tutorial
- Level:
- beginner
- Room:
- Club H
- Start:
- 09:30 on Tuesday, 15 July 2025
- End:
- 12:45 on Tuesday, 15 July 2025
- Duration:
- 180 minutes
Abstract
Managing a database and synchronizing service data representation with the database can be tricky. In this workshop, youâll learn how to use SQLAlchemy, a powerful SQL toolkit, to simplify this task. Weâll cover how to leverage SQLAlchemyâs Object Relational Mapper (ORM) system, and how to use ORMâs asyncio extension in your async services. Participants will walk out of this tutorial having learned how to:
- Use SQLAlchemy for database operations in Python, enhancing the readability and maintainability of the code
- Build Python classes (ORMs) that represent the database tables
- Experiment with different relationship-loading techniques to improve querying performance
- Utilize SQLAlchemyâs asyncio extension to interact with databases asynchronously