Skip to content

Slow import / performance. #4

@dessalines

Description

@dessalines

This import should only take a few seconds, but it takes minutes because:

  • It uses many separate insert statements, instead of one as it should. Or it could use COPY.
  • It selects the community and user id from the name for each statement, rather than getting them from a join.

SQL performance is all about minimizing the # of queries / statements you have to run.

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