Skip to content

Performance degradation and memory peaks when updating from 0.8.12 #282

Closed

Description

@pmbrull

Hi folks,

We have a process that extracts metadata out of Redshift clusters. We noticed that when we upgraded to the latest 0.8.14 release, the process started to run way slower and showed huge memory consumption peaks.

We were able to pinpoint the call that was getting those memory bumps here, in the _get_redshift_columns method of the inspector.

This is an image of the memory consumption after running for some minutes:
image

If left alone, the process would take up to 8GB of RAM.

If instead we pin the dependency to 0.8.12 without any other code changes, the performance goes way smoother and there are no memory management issues.

We tried to review the only PR involved from 0.8.12 to 0.8.13, but we might be lacking some context/knowledge to make an accurate guess there.

If you have any thoughts on what we could analyze further or any suggestions, it would be great.

Thanks!

Activity

  1. added 12 commits that reference this issue on Mar 20, 2026
    809fc82
    5591179
    341b69d
    3cc5414
    5f05bfd
    b7ee085
    50cad24
    29977c7
    a9c43db
    c2cb645
    b6d5369
    2ba9fa9
  2. TeddyCr commented on Apr 30, 2026

    @TeddyCr
    Contributor

    Thank you for your contribution and interest in sqlalchemy-redshift. With the help of the OpenMetadata engineering team I recently released sqlalchemy-redshift 1.0.0 with support for SQLAlchemy 2.

    With this recent change I'll be closing open tickets and PRs. If you find your issue or PR still relevant for sqlalchemy-redshift v1.0.0, please reopen the ticket.

    You can find more information here https://medium.com/p/1388d8dec83d

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions