#101 Re: mORMot 1 » MVCServer : /blog path » 2015-06-08 10:36:42

I think that this could be done using ZEOS:

Zeos7.2-beta branches_ testing_Revision 3628:
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.2/
(Firebird/InterBase, MariaDB/MySQL, PostgreSQL, SQLite, Oracle, Sybase, MSSQL, ADO(Windows); Lazarus, Delphi, CodeTyphon; 32/64-bit).

Zeos7.3-beta branches_ testing_Revision 3632(test version):
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.3/
(Firebird/InterBase, MariaDB/MySQL, PostgreSQL, SQLite, Oracle, Sybase, MSSQL, ADO(Windows), OLE DB-MSSQL(Windows); Lazarus, Delphi, CodeTyphon; 32/64-bit).

http://zeoslib.sourceforge.net/viewtopi … &start=338

Arnaud, could you try to create such Universal MVC-Server Demo?

Michal

#102 Re: mORMot 1 » ZeosDB » 2015-05-02 10:28:48

From what I see CodeTyphon current version(5.30), release date 29-Apr-2015:
http://www.pilotlogic.com/sitejoom/inde … codetyphon
includes the latest version of ZEOS 7.2 beta r3619(r3627).

Michal

#103 Re: mORMot 1 » ZeosDB » 2015-04-29 16:22:15

Update ZEOS in CodeTyphon involves replacing the contents from the "C:\codetyphon\typhon\components\pl_ZeosDBO\source\*"
on contents of the current Revision from directory "src\*" and rebuild of the entire CodeTyphon.

Michal

#104 Re: mORMot 1 » ZeosDB » 2015-04-29 11:21:48

@Thomas-Acia,

Use the version:
Zeos7.2-beta branches_ testing_Revision 3619(3627):
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.2/

I have not encountered significant problems in all my tests:
http://zeoslib.sourceforge.net/viewtopi … 664#p38406

Michal

#106 Re: mORMot 1 » TestSQL3 on Windows 10. » 2015-04-23 14:34:07

Thank you,
Now and in Windows 10 is fine.

Michal

#107 mORMot 1 » TestSQL3 on Windows 10. » 2015-04-23 13:55:44

miab3
Replies: 2

Arnaud,

Whence can take these errors on Windows 10-64 build 10049 ?:

 2.9. External database:
  - TQuery: 2,003 assertions passed  18.61ms
! External database - SynDBRemote
! Exception ESQLDBRemote raised with messsage:
!  TSQLDBServerHttpApi.Create: administrator rights needed to register URI root on port 888
  - DB properties persistence: 7 assertions passed  3.60ms
  - External records: 2 assertions passed  778us
  - Auto adapt SQL: 708 assertions passed  70.84ms
  - Crypted database: 253,275 assertions passed  299.01ms
  - External via REST: 170,354 assertions passed  916.66ms
  - External via virtual table: 170,354 assertions passed  1.53s
  - External via REST with change tracking: 180,454 assertions passed  2.47s
  - JET database: 7,007 assertions passed  885.14ms
  Total failed: 0 / 799,211  - External database PASSED  6.68s

On Windows 7-64 and 8.1-64 is all right.
Delphi XE2-32.
mORMot 1.18.1242

Michal

#108 Re: mORMot 1 » Test slowdown (1.18.1190) » 2015-04-05 20:27:26

Arnaud,

Maybe it was not a problem SQLite, but there was something wrong in TestSQL3.
It looks like that now (in 1.18.1197) is well.

Michal

#109 mORMot 1 » Test slowdown (1.18.1190) » 2015-04-03 22:43:45

miab3
Replies: 2

Arnaud,

SQLite drastically slowed down in writing (TestSQL3.exe, 15 - External DB performance)
It looks like it works in 'synchronous = FULL' mode?
(Delphi XE2-32).

Michal

#110 Re: mORMot 1 » SynCommons.pas - delphi package compilation error. Again :( » 2015-01-04 22:03:00

@wloochacz, @ab,

In my Delphi XE2-32 it looks so:

requires
  rtl,
  vcl,
  xmlrtl,
  dbrtl,
  AnyDAC_Phys_D16,
  AnyDAC_ComI_D16,
  AnyDAC_PhysIB_D16,
  AnyDAC_Comp_D16;

and it works.

Michal

#112 Re: mORMot 1 » OFF-TOPIC: Merry christmas... » 2014-12-23 23:44:10

Wesołych Świąt Bożego Narodzenia i szczęśliwego Nowego Roku 2015.

Michał

#113 Re: mORMot 1 » Firebird transactions » 2014-12-04 09:37:01

@ab, All

According to my knowledge ZEOS always starts transaction after Connect and Commit/Rollback(at the lowest level).

so
(in AutoCommit mode (Default))

ExecSQL;
ExecSQL;

or

AutoCommit := false;
ExecSQL;
ExecSQL;
Commit/Rollback


StartTransaction - disables (temporarily) AutoCommit mode and starts an additional
transaction then Commit/Rollback refers to the current transaction.
So

StartTransaction;
ExecSQL;
ExecSQL;
Commit/Rollback;

is acceptable.

Michal

#114 Re: mORMot 1 » Failed tests when running "TestSQL3" » 2014-12-03 18:22:45

@ab

1.18.610
Remained just good old error on Windows 8/10-64
!  - TPdfDocument: 1 / 2 FAILED  67.73ms

Michal

#115 Re: mORMot 1 » Failed tests when running "TestSQL3" » 2014-12-03 12:25:55

@ab,

For this you do not need an MSDN account.
Just create an account on the outlook.com.

Michal

#116 Re: mORMot 1 » Failed tests when running "TestSQL3" » 2014-12-03 10:36:10

@ab

You may try on Windows 10-64 (Build 9879).
For now, it's free.

...
!  - TSynTableStatement: 6 / 205 FAILED  1.45ms
...
!  - TPdfDocument: 1 / 2 FAILED  19.64ms
...
Synopse framework used: 1.18.605
Running on wEight_64 with code page 1252
SQlite3 engine used: 3.8.7.2
Generated with: Delphi XE2 compiler

Time elapsed for all tests: 78.55s
Tests performed at 2014-12-03 11:24:51

Total assertions failed for all test suits:  7 / 17,584,116
! Some tests FAILED: please correct the code.


Done - Press ENTER to Exit

Michal

#117 Re: mORMot 1 » Failed tests when running "TestSQL3" » 2014-12-02 15:23:53

@ab

Recently widened the pool of errors in TestSQL3: (1.18.601)

For Windows7-64 is:
!  - TSynTableStatement: 6 / 205 FAILED  1.12ms

and for Windows8.1-64:
!  - TSynTable: 187 / 875 FAILED  12.39ms
!  - TSynTableStatement: 6 / 205 FAILED  415us
and old
!  - TPdfDocument: 1 / 2 FAILED  72.43ms

Michal

#118 Re: mORMot 1 » mORMot to Nested TClientdataset... and back again. ORMCDS unit » 2014-12-01 15:45:10

@AntonE,

Nice, but could you use the convention?

ATypeInfo^.TypeData^.ClassType => GetTypeData(ATypeInfo).ClassType
BInfo.CDS.RecNo.ToString => IntToStr(BInfo.CDS.RecNo)

Older Delphi (eg. XE2) does not compile this.

Michal

#119 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-11-27 12:22:04

@ab,

All the time I have a problem with the 30 - MVC Server for Oracle and ZEOS (FireDAC).
Do not rename the reserved names and  do not INSERT.
Oracle-ZEOS test passes:
http://zeoslib.sourceforge.net/viewtopi … 628#p35628

Michal

#120 Re: mORMot 1 » Firebird transactions » 2014-11-26 16:22:08

@alpinistbg

Firebird Embedded "server" supports only one localhost connection(to specified database).
http://www.firebirdsql.org/manual/fbmet … edded.html

Michal

#121 Re: mORMot 1 » Firebird transactions » 2014-11-26 14:48:45

There is one important limitation.
If you use fbembed.dll (instead fbclient.dll) to localhost , the database is not a multi-user.
(The server is bypassed).
And it is not  especially more performance, but easier to simple installations.

I think the same is with  Embedded MySQL.

Michal

#122 Re: mORMot 1 » ZEOS + Firebird + Update-Problem » 2014-11-26 14:17:00

@danielkuettner, @ab,

Perhaps wrong is selected (set) TransactIsolationLevel?
http://www.devrace.com/en/fibplus/articles/479.php
http://www.devrace.com/en/fibplus/articles/3292.php

Currently in ZEOS is: 

  Params.Add('isc_tpb_version3');
  case TransactIsolationLevel of
    tiReadCommitted:
      begin
        Params.Add('isc_tpb_read_committed');
        Params.Add('isc_tpb_rec_version');
        Params.Add('isc_tpb_nowait');
      end;
    tiRepeatableRead:
      begin
        Params.Add('isc_tpb_concurrency');
        Params.Add('isc_tpb_nowait');
      end;
    tiSerializable:
      begin
        Params.Add('isc_tpb_consistency');
      end;
    else
    begin
      { Add user defined parameters for transaction }
      Params.Clear;
      Params.AddStrings(Info);
	  	 		 	  
    end;
  end;

The default is tiNone(else).

Michal

#123 Re: mORMot 1 » ZEOS + Firebird + Update-Problem » 2014-11-26 10:57:24

@danielkuettner

Could you try ZEOS 7.2 and Firebird with enabled 'hard_commit=TRUE'?

Michal

#124 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-23 14:50:50

@ab,

ZEOS MySQL reading By one, was corrected a few days ago by Michael in svn ZEOS 7.2:
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.2/
Now result is approx. 10 thousand per sec.
Similar to PostgreSQL or Oracle connected locally by ZEOS.

Michal

#125 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-21 21:15:26

@ab,

firebird-2.5:
postgresql:
mysql://SERVER
database
username
password

FreeTDS_MsSQL>=2005://MSSERVER
database
username
password

oracle:SERVER

username
password

sqlite:Full Path Filename

ado:Connection String

Useful will be yet  Edit for LibraryLocation smile

Michal

#126 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-21 18:52:19

@ab,

I check.
SynDBExplorer using ZEOS works with:

oracle:
firebird-2.5:
mysql:
postgresql:
sqlite:
FreeTDS_MsSQL>=2005:
ado: (jet,sqlncli)

And work as HTTP server(Remote HTTP) those databases. big_smile

mORMot 1.18.552;
ZEOS 7.2.0-beta r3501 http://zeoslib.sourceforge.net/viewtopi … 354#p35354
Delphi XE2-32.

Michal

#127 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-20 09:59:12

@ab,

Thanks.
Now better, although it was useful to refresh the (TableName) list without restarting the application.

Michal

#128 Re: mORMot 1 » MSSQL and ZEOS » 2014-11-20 09:32:12

@ab,

After 1.18.548:

VirtualTableExternalRegisterAll(aModel,aExternalDB,[regDoNotRegisterUserGroupTables, regMapAutoKeywordFields]);
still does not work (Oracle) even for SynDBOracle.
Only manually rename Comment allows run 30 - MVC.. .

Michal

#129 Re: mORMot 1 » Failed tests when running "TestSQL3" » 2014-11-19 08:57:28

@ab,

For me this error (!  - TPdfDocument: 1 / 4 FAILED) occurs on:
Windows 8.1-64 and Windows 10-64.

On Windows 7-32 and 7-64 All is OK.

Michal

#130 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-18 23:20:25

@ab,

But the "Remote HTTP" can be join in the various databases on the SynDBExplorer-HTTP-server.
Besides, the database can also be changed between restarts SynDBExplorer.

Could you add (button) cache(Table List) refresh?

Michal

#131 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-18 19:25:04

@ab,

Thanks,
SynDBExplorer now working with ZEOS too(Firebird, Oracle).

Such a little thing:
In the case of "Remote HTTP" list of metadata(Table Name) is not cleaned and refreshed.
In general, the list of tables is probably unnecessarily cached in SynDBExplorer.config.

select * from ARTICLE
is slow in ZEOS-Oracle too. smile

Michal

#132 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-18 15:49:14

@ab,

Why are these your connections in SynDBExplorer to Oracle are so slow, and for some of the tables do not work at all?
Could you integrate ZEOS into SynDBExplorer?

Michal

#133 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-18 12:49:12

@ab,

It works. smile
And if you could add a remote HTTP-SQLite3 server, to which connects the SynDBExplorer? smile

ADD: Oh, it probably already added. (1.18.536) smile

Michal

#134 Re: mORMot 1 » MSSQL and ZEOS » 2014-11-18 12:40:04

@ab,

ZEOS still has a problem with INSERT statement in Oracle.
Both the sample data and Add Comment.
SynDBOracle not have this problem.

mORMot 1.18.536; ZEOS 7.2.0-beta r3494.

Michal

#135 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-18 00:41:07

@Arnaud

Could you write demo to test the performance of this solution?
Please.

Michal

#136 Re: mORMot 1 » MSSQL and ZEOS » 2014-11-16 23:18:35

@ab

With SynDBOracle work but only in a version with Comment1 !!!.
ZEOS and AnyDAC has apparently problem with INSERT.

ab wrote:

Any feedback about how to install Oracle XE?

In Windows, you download and install:
http://www.oracle.com/technetwork/datab … index.html
in Linux I have no experience.

Michal

#137 Re: mORMot 1 » MSSQL and ZEOS » 2014-11-16 22:23:33

@ab,

I have not tried the SynDBOracle yet, but just as ZEOS behaving AnyDAC/FireDAC (with Oracle).

Michal

#138 Re: mORMot 1 » MSSQL and ZEOS » 2014-11-16 10:56:24

@ab,

With the Oracle is not too good.
VirtualTableExternalRegisterAll(aModel,aExternalDB,[regDoNotRegisterUserGroupTables, regMapAutoKeywordFields]);
not helping base is not created and server does not start.
(I do not know whether to emphasize before the name can be used in Oracle?)

However, after replacing Comment on Comment1 database is generated but not all the tables are filled with data(ARTICLE, COMMENT1).
Could you look into Oracle? maybe I missed something.
This may come in handy:

drop table ARTICLE;
drop table ARTICLESEARCH;
drop table AUTHOR;
drop table BLOGINFO;
drop table TAG;
-- drop table COMMENT;
-- drop table COMMENT1;
-- drop table _COMMENT;

mORMot 1.18.525; ZEOS 7.2.0-beta r3489; Delphi XE2-32; W7-64; remote Oracle XE 11.2g.

Michal

#139 Re: mORMot 1 » MSSQL and ZEOS » 2014-11-15 22:18:30

@ab,

ab wrote:

In all cases, there is now an overloaded URI() method for setting the expected protocol.
big_smile

Thanks smile


By the way, it turned out that the name COMMENT used in Example 30 - MVC... is reserved in Oracle:
https://docs.oracle.com/cd/B19306_01/em … _words.htm
https://docs.oracle.com/cd/B28359_01/se … SQLRF01109

Michal

#140 Re: mORMot 1 » MSSQL and ZEOS » 2014-11-15 19:30:53

@ab,

UpperCase should remain in (new) line 558 SynDBZEOS.pas:

L558: SQLSplitTableName(UpperCase(aTablename), Schema,TableName);

(There is a problem with Oracle)

mORMot 1.18.520; ZEOS ZEOS 7.2.0-beta r3489; Delphi XE2-32

Michal

#141 mORMot 1 » MSSQL and ZEOS » 2014-11-14 15:09:18

miab3
Replies: 13

Arnaud,

Where(how) in the case of ZEOS I define (differentiate) connection by?:

- Mssql,
- FreeTDS,
- Ado-SQLNCLI.

Michal

#142 Re: mORMot 1 » CreateMissingTables does not create tables in external FirebirdDB » 2014-11-11 20:21:50

@ab

After last changes:

12 - SynDB Explorer
Error: TSQLConnection.Database field name conflicts with a SQL keyword
on startup.

mORMotr 1.18.496 Delphi XE2-32

Michal

#143 mORMot 1 » AV in 1.18.474 » 2014-11-06 23:48:11

miab3
Replies: 1

@ab

17 - TClientDataset use
AV on startup.

Delphi XE2-32 (Windows 7-64)

Michal

#145 Re: mORMot 1 » Erro testing Samples\30 - MVC Server\MVCServerPostgreSQL » 2014-11-04 16:10:09

@moctes

By me FB3 is slightly slower than FB2.53 (with a simple single access),
but from what I read it have a lot of interesting extensions.

Michal

#146 Re: mORMot 1 » Erro testing Samples\30 - MVC Server\MVCServerPostgreSQL » 2014-11-04 15:33:12

@ab

30 - MVC Server from today(ZEOSLIB 7.2 Revision 3465), also works with Firebird 3.0 smile

Michal

#147 Re: mORMot 1 » Erro testing Samples\30 - MVC Server\MVCServerPostgreSQL » 2014-11-04 14:49:49

@ab,

30 - MVC Server
works for me with PostgreSQL 9.3 too.

Currently:
mORMot 2014-11-03 19:54:47 1.18.467
and
ZEOS 7.2 2014-11-04 Revision 3465.

Michal

#149 Re: mORMot 1 » Erro testing Samples\30 - MVC Server\MVCServerPostgreSQL » 2014-11-04 11:49:08

@corchi72,

Maybe you have old tables:

drop table article;
drop table articlesearch;
drop table author;
drop table bloginfo;
drop table comment;
drop table tag;

Or the old ZEOS or old mORMot?

Michal

#150 Re: mORMot 1 » Can one use mormot with legacy Firebird tables? » 2014-10-31 13:02:55

@ab

Thanks.
Well, now it works.
Now you can type numerical poppycock. wink

Michal

Board footer

Powered by FluxBB