You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i run neo4j in my node.js app, if --enable-source-maps is enabled, the average query time moves from 10ms to over a second.
Some more details:
We have a node.js backend application. When I run in using yarn dev
(e.g. DEBUG=backend* node --enable-source-maps build.js --start --watch")
All queries and operations take about a second minimum.
When I then build that javascript app "rm -rf dist && NODE_ENV=development node build.js
And then run dist/index.js.. boom, 1 second turns to 7ms.
For building I am using esbuild.
When I run a hybrid node build.js --start --watch manually... even though I'm watching as in normal dev mode, the query time remains performant.
I've been able to narrow this down to purely source maps. I don't know why source maps should affect neo4j query performance, but I would like to have them enabled and still be able to run development with speedy queries.
The text was updated successfully, but these errors were encountered:
I've tried my sample with project with node v16.19.0 and I can't reproduce the problem.
I can't figure out what's happening. Can you reproduce the problem with the setup I shared?
When i run neo4j in my node.js app, if
--enable-source-maps
is enabled, the average query time moves from 10ms to over a second.Some more details:
We have a node.js backend application. When I run in using
yarn dev
(e.g.
DEBUG=backend* node --enable-source-maps build.js --start --watch"
)All queries and operations take about a second minimum.
When I then build that javascript app
"rm -rf dist && NODE_ENV=development node build.js
And then run dist/index.js.. boom, 1 second turns to 7ms.
For building I am using esbuild.
When I run a hybrid
node build.js --start --watch
manually... even though I'm watching as in normal dev mode, the query time remains performant.I've been able to narrow this down to purely source maps. I don't know why source maps should affect neo4j query performance, but I would like to have them enabled and still be able to run development with speedy queries.
The text was updated successfully, but these errors were encountered: