Comments (3)
I will take a look do you have a test case that you can send it to me ?
from node-firebird.
Hi!
First of all, I would like to apologise that I didn't write to you earlier.
As I said, this situation is not easy to reproduce, but I managed to prepare sample simulating this situation. I wrote shortest possible Node.js server updating some data in Firebird database and corresponding load test for this server. Whole sample is available as a gist here:
https://gist.github.com/piotr-przebieracz/f7949bfb89654213fa2a
After downloading my sample, just install npm packages and replace path to test database in server.js file. I ran load test on 3 machines - in some cases the error occurred right after first execution, sometimes - a little bit later.
It is also important that I used forked version of 'node-firebird' package (https://github.com/ela-compil/node-firebird). As you can see, the only change is default isolation level. Me and my colleagues needed NO WAIT behaviour in case of a situation when two or more simultaneous updates occur, because it was important for us to receive an error immediately without waiting.
The default behaviour (waiting for the other transaction to finish) resulted in very long response times when two or more users modified the same data.
from node-firebird.
You should use fb.attach()
for each request. I added a connection pooling into new version, try it with new version v0.2.0:
A small modification:
https://www.online-clipboard.com/1413307914875304f8b589e205ebx28/
Everything works but server gets too many requests.
from node-firebird.
Related Issues (20)
- blobAsText and cyrilic symbols
- Timestamp returns wrong values
- Blobs returned from Execute Procedure
- bug in node-firebird 1.1.5 package HOT 2
- Blob error if the subtype isn't binary HOT 1
- FB4 connections and endangered legacy_auth
- Break Line in a Text field HOT 1
- encoding WIN1252 dont work as expected HOT 1
- hang when preparing statement with too many parameters on firebird 2.5
- sequentially - Reached heap limit Allocation failed
- Why do we get no result from update statements?
- TypeError: Cannot set properties of undefined (setting 'lazy_count') HOT 2
- Error: Incompatible wire encryption levels requested on client and server at doCallback HOT 2
- Error: DB connection HOT 1
- encoding WIN1253 not working. HOT 2
- deno HOT 4
- sum error HOT 2
- Migratin to 4.0 error
- db.query callback hangs HOT 2
- How to use encoding KSC_5601? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-firebird.