Search found 263 matches

by Fr0sT
15.02.2019, 11:52
Forum: ZeosLib 7.2 Forum
Topic: Bug in TZDefaultIdentifierConvertor.GetIdentifierCase?
Replies: 25
Views: 2844

Re: Bug in TZDefaultIdentifierConvertor.GetIdentifierCase?

So you rely on the following chain: - having Boolean - when assigned to string field, implicitly converted with BoolToStr - string value copied to string field AND silently truncated to that field size - value of 1st char in Delphi's boolean string representation is then written to DB As for me, thi...
by Fr0sT
15.02.2019, 11:20
Forum: ZeosLib 7.2 Forum
Topic: DateTime 00/00/0000
Replies: 7
Views: 1712

Re: DateTime 00/00/0000

Seems it's not a Zeos issue. Investigate further, are timestamp structures differ? Or binary representations of results of TimeStampToMSecs ?
by Fr0sT
14.02.2019, 08:48
Forum: MySQL
Topic: Simple Insert
Replies: 3
Views: 1478

Re: Simple Insert

If you printed your resulting Sql and tried to execute it directly in DB IDE, you'd quickly see your mistake
by Fr0sT
11.02.2019, 08:41
Forum: ZeosLib 7.2 Forum
Topic: Bug in TZDefaultIdentifierConvertor.GetIdentifierCase?
Replies: 25
Views: 2844

Re: Bug in TZDefaultIdentifierConvertor.GetIdentifierCase?

Boolean won't automagically transform to Char. Previous behavior was incorrect. If you want to operate Booleans, FB3+ is your option.
by Fr0sT
11.02.2019, 08:36
Forum: ZeosLib 7.2 Forum
Topic: 'GetULong' differs from declaration in interface 'IZResultSet'
Replies: 5
Views: 739

Re: 'GetULong' differs from declaration in interface 'IZResultSet'

Apparently 2007 does have troubles with uint64... though it usually looks like internal error.
Can we have a way to force the WITH_UINT64_C1118_ERROR regardless the delphi version?
This don't seem like right decision.
by Fr0sT
11.02.2019, 08:26
Forum: ZeosLib 7.2 Forum
Topic: Update only the changed fields
Replies: 4
Views: 892

Re: Update only the changed fields

Dataset/DB property DSProps_KeyFields lets you manually define fields which will be considered "key". I use this tech for views
by Fr0sT
09.01.2019, 08:01
Forum: ZeosLib 7.3/8.0 Forum
Topic: Embedded MySQL missing
Replies: 6
Views: 1105

Re: Embedded MySQL missing

Have you tried using MySQL protocol with mysqld lib?
by Fr0sT
07.12.2018, 08:43
Forum: ZeosLib 7.2 Forum
Topic: Is there any additional configuration for ZeosLib 7.2.4 to optimize MySQL performance?
Replies: 18
Views: 3488

Re: Is there any additional configuration for ZeosLib 7.2.4 to optimize MySQL performance?

On performance improvement with USE_SYNCOMMONS, I found this information in Synopse mORMot: Yes, Zeos has full-featured and faster low-level classes that many people use directly instead of TDataset ancestors. These are IZStatement and IZResultSet. You can see them in action in {Zeos}\test\dbc unit...
by Fr0sT
04.12.2018, 08:22
Forum: ZeosLib 7.2 Forum
Topic: Is there any additional configuration for ZeosLib 7.2.4 to optimize MySQL performance?
Replies: 18
Views: 3488

Re: Is there any additional configuration for ZeosLib 7.2.4 to optimize MySQL performance?

Don't know about MyDAC but Zeos uses automatic transaction control by default. Try switching to manual control and perform all your of loop inside a single transaction. I believe it will significantly increase perf. As for USE_SYNCOMMONS, it just enables one method to export dataset to JSON, it has ...
by Fr0sT
23.11.2018, 10:01
Forum: ZeosLib 7.2 Forum
Topic: Multithreaded application best practices
Replies: 14
Views: 2872

Re: Multithreaded application best practices

Everything depends on your data flow. If your app is just a reader or writer, that's one case. I myself have an app with real-time data exchange. I have multiple isolated threads for reading and for writing owning their personal connection/query/dataset objects. If you need to access a dataset from ...
by Fr0sT
21.11.2018, 14:38
Forum: ZeosLib 7.2 Forum
Topic: Multithreaded application best practices
Replies: 14
Views: 2872

Re: Multithreaded application best practices

You mean same connection inside or between threads? I mean, let's say I have - Thread T1 with one ZConnection and two ZTables (to tables A and B) - Thread T2 with one ZConnection and four ZTables (to tables C, D, E and F) - Thread T3 with one ZConnection and one ZTable (to table G) All ZConnections...
by Fr0sT
21.11.2018, 14:28
Forum: ZeosLib 7.2 Forum
Topic: How can I check if connection is active?
Replies: 7
Views: 2741

Re: How can I check if connection is active?

If your solution is executed from time to time that's just fine; resource consumption is very low :). Dummy select as a concept is the most simple and general solution though on the implementation level it will require different syntax for different drivers. That's why ZConnection.Ping is implemente...
by Fr0sT
21.11.2018, 08:53
Forum: ZeosLib 7.2 Forum
Topic: How can I check if connection is active?
Replies: 7
Views: 2741

Re: How can I check if connection is active?

"SELECT 1" is non-standard and every DBMS has its own syntax for selecting a constant. Moreover this dummy select consumes more resources (starts/uses a transaction, creates resultset etc) than probably other driver-specific pinging methods. F.ex., FB pings by requesting DB info which does...
by Fr0sT
21.11.2018, 08:30
Forum: ZeosLib 7.2 Forum
Topic: Postgres 11 Procedure call by TZStoredProc
Replies: 5
Views: 1096

Re: Postgres 11 Procedure call by TZStoredProc

It's completely a TZStoredProc business - so maybe a new param will do the job done
by Fr0sT
21.11.2018, 08:25
Forum: ZeosLib 7.2 Forum
Topic: Multithreaded application best practices
Replies: 14
Views: 2872

Re: Multithreaded application best practices

Well, usually the only right way is "one connection = one thread". But if you really need multithreaded access to same objects, you'll have to sync access to them - crit sections, semaphores, events etc. Just keep in mind that even simultaneous access to two different tables is not safe if...