Skip to content

[perf] Database migration takes 40 seconds with an empty database #251

@FossPrime

Description

@FossPrime

On a slow computer, it can take 40 seconds. Does anyone have ideas on how to speed this up? Can it be done AOT?

Proposed solution

  • Knex can create tables right? so why not create it if it doesn't exist? like mkdir -p
  • We could run the migrate process after listen. Not sure if that works.

Reproduction: https://replit.com/new/github/feathersjs/feathers-chat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions