Comments (5)
Just a heads up: if you are using the OCI session pool, in Oracle 12.2 the session pool has an always-enabled, lightweight check so pinging is unnecessary in the common failure scenario.
In node-oracledb we skip the getConnection() ping when using 12.2 client. Discussion is in the node-oracledb doc. Also see the same in ODPI-C.
from erloci.
@cjbj so you are saying the connections in the oci pool has an internal ping. This requirement is to check the validity of a connection that is held on by the application. Not sure how the internal ping comes into perspective here
from erloci.
@shamis yes, it is internal, so it covers some cases but not cases where users want to force a ping (though for scalability I'd still recommend they avoid pinging, and instead try the normal application logic and if it fails, re-connect and re-try the application logic. With OCI Application Continuity the OCI layer will do replays of work.) I was just giving you a FYI. Bottom line, OCI is trying to do more to make drivers like erloci easy to write and give them greater 'high availability'. The ODPI-C layer is also something to look at since it makes driver creation easier. We'll make node-oracledb and cx_Oracle use ODPI-C in the near future.
from erloci.
@cjbj Thanks for your interest and inputs.
Bottom line, OCI is trying to do more to make drivers like erloci easy to write and give them greater 'high availability'.
Honestly C/C++ (native) part is quite old and not being kept updated to latest and greatest OCI features. Sometime soon it will definitely benefit from some upgrade efforts.
The ODPI-C layer is also something to look at since it makes driver creation easier.
ODPI-C looks interesting and perhaps completely (or with a small amount of glue coding) can replace erloci_lib.
A quick look into ODPI-C repo:
- no tutorials (samples are good enough though)
- no test bench marking data
- no major release yet
perhaps its better to wait a bit before considering ODPI-C in erloci
A C++ (with ref/sp instead) wrapper alternative would however be a better candidate than ODPI-C to upgrade erloci_lib with, if there is one -- OCCI perhaps?
We'll make node-oracledb and cx_Oracle use ODPI-C in the near future.
How are you performance bench marking node-oracledb?
from erloci.
@c-bik Thanks for the points about ODPI-C. Improving C++ use is a topic we are discussing (/cc @tianfyang, @anthony-tuininga).
If you have any comments about how ODPI-C's API's would or wouldn't work for erloci, let us know before we go 'production'.
We run a bunch of load and stress tests with development-level benchmarks. This is in-house due to use of infrastructure tooling. Functional tests and doc will be added to ODPI-C as the project continues.
from erloci.
Related Issues (20)
- Add support to cancel long running statements.
- add optional client identifier support
- fetch_rows called without executing stmt results in cryptic error
- Hour,Minutes,Seconds increased by 1 HOT 1
- Unoptimized oci_util:to_num
- Error starting a session HOT 1
- Continuous Query Notification (CQN) support
- 008741 Debugging API for erloci port implementation
- Memory Leak HOT 1
- reading RAW fields is truncating at byte 0
- query execute failure on SBS test installation HOT 2
- add support for fetch_rows(N, WaitTime)
- Error reading CLOB in logger_log HOT 1
- Timestamp fractional seconds internal oracle representation. HOT 5
- DB NULL should be distinguishable in row values
- Add support to edit CLOBS HOT 2
- Length param isn't respected in Stmt:lob(LobId, Offset, Length) HOT 1
- One failed query can prevent future queries working
- Using SQLT_VNU as an in out parameter fails
- Argument error using OTP 22 HOT 6
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 erloci.