Search found 5 matches

by stinkard
23.11.2018, 15:31
Forum: ZeosLib 7.2 Forum
Topic: Multithreaded application best practices
Replies: 14
Views: 2628

Re: Multithreaded application best practices

for me it seems that the problem is that you need to make sure, that updated in the database doesn't overlap. If you can get to that point, you can easily have one connection per thread: Yes, I have no overlaps, and I use 1 connection in each DB thread. As long, as the threads that parse the data d...
by stinkard
23.11.2018, 14:46
Forum: ZeosLib 7.2 Forum
Topic: Multithreaded application best practices
Replies: 14
Views: 2628

Re: Multithreaded application best practices

Hello! Jan , I have no problems with multi threading and locks in the database. I just shared my approach with aehimself . In fact, I have 400 incoming info flows, each flow is placed in some separated tables. I have data Intersection only on a level of reference tables and tables with processing ta...
by stinkard
22.11.2018, 06:39
Forum: ZeosLib 7.2 Forum
Topic: Postgres 11 Procedure call by TZStoredProc
Replies: 5
Views: 1041

Re: Postgres 11 Procedure call by TZStoredProc

Hellow! marsupilami, The introduction of procedures in PG11 is to enable the use of internal transactions that have not been addressed in previous versions of PG. https://www.postgresql.org/docs/11/plpgsql-transactions.html Therefore, with the work of the procedures must be ensured. This need will g...
by stinkard
21.11.2018, 15:22
Forum: ZeosLib 7.2 Forum
Topic: Multithreaded application best practices
Replies: 14
Views: 2628

Re: Multithreaded application best practices

Hi! I tried to use 1 TZConnection for different TZReadOnlyQuery in different threads. As a result, I got Access Violation in case the threads are accessing at the same time. So I can not call a thread-protected ZConnection. But that was before the advent of ZEOS 7.2.4. Exactly the version on which I...
by stinkard
19.11.2018, 23:57
Forum: ZeosLib 7.2 Forum
Topic: Postgres 11 Procedure call by TZStoredProc
Replies: 5
Views: 1041

Postgres 11 Procedure call by TZStoredProc

Hi everyone! First of all thanks to Zeos developers for a cool free product! Faced a problem of a call of the Postgres 11 procedure. select VERSION(); PostgreSQL 11.1, compiled by Visual C++ build 1914, 64-bit Example: CREATE OR REPLACE PROCEDURE "testuser"."testproc"(IN "x&...