Skip to content

TypeORM slow down startup time of ionic app #31

@thibaud-sanchez

Description

@thibaud-sanchez

I can reproduce it on a new project, If I add TypeORM according to the Readme file to my project, my app start normally in about 4sec (prod mode).

But if somewhere in my app I use an entity created for typeORM (without creating database connection and without inserting it, just a new), like :
let user = new TestUser();

I noticed that my app take 2 seconds more to start even if my new is never called nowhere... Is it possible to do this job in background and not at startup, because I don't really need TypeORM at startup.

Do you know why does it slow down the app startup ?
I can give you a step to reproduce if you tell me it's abnormal.

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