Skip to content

Running out of memory when pushing Andromeda tables to external databases using bulk import #256

Open

Description

@schuemie

Noticed while trying to push the concept_relationship table to Postgres. It probably has to with writing the Andromeda table to CSV prior to calling the PG bulk upload tool

Activity

  1. schuemie commented on Nov 28, 2023

    @schuemie
    MemberAuthor

    This is actually harder than I thought. insertTable() does some operations on the data, like (optionally) converting column names to snake_case, and inferring column types for the table creation SQL, that don't work out-of-the-box on Andromeda tables. For now, insertTable() explicitly converts Andromeda tables to data frames and throws a warning when it does.

    For larger tables, for now the best option is to do the batching outside of insertTable().

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions