Giter VIP home page Giter VIP logo

Comments (8)

hfhchan-plb avatar hfhchan-plb commented on June 5, 2024 1

Running this locally I'm seeing 0.06 ms - 0.19 ms without the change and 0.07 ms - 0.13 ms with the change with some spikes going up to 1 ms or 2 ms. As I'm using forRootAsync() the only thing being serialized is generateString(), which basically just calls uuid. So it looks like the runtime itself was stalling to produce random values 🤷

Closing for now.

from typeorm.

micalevisk avatar micalevisk commented on June 5, 2024

so what's the issue here?

make sure you're using the latest version of @nestjs/core and @nestjs/common

from typeorm.

hfhchan-plb avatar hfhchan-plb commented on June 5, 2024

Sorry I've just updated the minimum reproduction code.

I'm using 10.3.0 which appears to be the latest version.

from typeorm.

micalevisk avatar micalevisk commented on June 5, 2024

ok but what's the expected behavior?

that's just an warning message, not an error, right? You can see why it exists in the issue nestjs/nest#12738

from typeorm.

hfhchan-plb avatar hfhchan-plb commented on June 5, 2024

I think the expected behavior would be that the TypeORM integration would avoid having a large amount of static data to be serialized?

I would like to find a way to remove that 30 ms extra time per cold start 🤔

from typeorm.

micalevisk avatar micalevisk commented on June 5, 2024

I believe that this is a limitation that we cannot circumvent on the nestjs side yet

from typeorm.

hfhchan-plb avatar hfhchan-plb commented on June 5, 2024

This can probably be fixed by replacing the useValue with useFactory like the original issue

from typeorm.

micalevisk avatar micalevisk commented on June 5, 2024

so please try it out changing the js code of your node_modules/@nestjs/typeorm dir

from typeorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.