Skip to content

SQLAlchemy async #5

Description

@antont

Hi - would someone know how to profile async SQLAlchemy operations with this?

This works in the sense that I get to see something, but the timing is always ~1ms, maybe because that's how quickly the initial call to the coroutine returns?

  "db_async_exec": (sqlalchemy.ext.asyncio.AsyncSession.execute,),

I also tried to add equivalents to the ResultProxy examples, but these are not correct, don't show up in the timings at all, probably these are just wrong functions.

  "db_async_fetch": (
      sqlalchemy.ext.asyncio.AsyncResult.fetchone,
      sqlalchemy.ext.asyncio.AsyncResult.fetchmany,
  )```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions