views:

548

answers:

8

I'm using delphi for years, but never for database stuff, but recently started researching and testing.

I must say, i'm impressed, most of things happens automatically, i'm used to write by hand in php and python.

i'm going to develop a commercial system for a friend, (2 layers) 5 user computers, 1 database server.

Database server will be a decent machine with (raid-1) 2 hard drives running (MySql5.1 or Postgre or Firebird, open to suggestions).

ADO

  • Easy to use
  • Easy deployment (only mysqlconnector installer)
  • The slower?

DbExpress

  • Need to ship 4 files [dbxconnections.ini, dbxdrivers.ini, mysqldll, driverdll]
  • The more complex (harder to use)
  • ClientDataSet add complexity, but looks really useful
  • No free Postgre driver?

Zeos

  • Easy deployment (1 dll)
  • Easy to use

As you can see the desired features are:

  • fast
  • easy to use
  • easy to deploy

I can't test all in a real scenario (clients, server), so i hope that you guys with experience can help me out in which one to choose and why.

EDIT: Thanks everyone, i think i will go with ADO (probably) or Zeos

Thanks in advance
Arthur

+5  A: 

@arthurprs, for you scenario

(2 layers) 5 user computers, 1 > database server.

alt text The Firebird RDBMS is a very good option , because is very stable, fast, runs on Linux, Windows, and a variety of Unix platforms and meet with you requirements.

alt text Respect to the components for connection i go for ZEOS.

I have used this combination in many small and medium projects, with excellent results.

RRUZ
+1 Thanks for everybody who mentioned ZEOS Lib I had not heard of it. I do wonder WHY isn't the delphi 2010 rev out yet (v7)?
Warren P
Zeos looks good and simple and it's faster than ADO, i may decide to use it at some moment. Regarding Firebird, i never used it, how it's compared to other database engines?
arthurprs
@arthurprs: Firebird is the open source derivative of Interbase. Check out the site http://www.firebirdsql.org or http://www.ibphoenix.com for more information about it. I use it myself for an alternative to products like Interbase, SQLServer, Access and MySQL. I have used all of the above but for my own use and that of my clients I will generally recommend FB first and others second.
Ryan J. Mills
if you are looking for commercial component use fibplus.
drorhan
+2  A: 

id have to say im rather happy with NexusDB but the cost for the client/server versions might not be worth it.

it works client/server or fully embedded, simple enough you can have both in your app and switch between them, depending on your clients needs

  • the embedded DB is free,
  • client/server "Priced per developer" is AU$ 500
  • No cost per install.

Oh yeh and its written in delphi ;)

Christopher Chase
An ERP system I wrote using NexusDB and kbmMW a couple of years ago has been running non stop at a clients. 5 Concurrent local users and up to 50 remote users at the same time with no issues - I'd recommend NexusDB too.
MarkRobinson
Unfortunately i can't afford any paid components, but it definitively looks good.
arthurprs
+3  A: 

I have worked on many commercial high volume systems using ADO without any problems. Deployment is relatively simple since its included in the OS. Since it has such a wide audience, most of the major issues have been identified and corrected. Getting help with ADO connectivity is very easy. The database support is very deep (connectionstrings.com) which make supporting additional database engines almost trivial (you may need to still install the client drivers, but that would be the same for almost any solution).

Performance isn't much of an issue, it really will come down to database architecture and engine selection.

skamradt
Thanks, any suggestions on the database engine?
arthurprs
I'd stay away from ADO if you ever intend to go cross-platform (of course, this assumes that some day Delphi will itself be cross platform).
Warren P
We should not expect Delphi to be cross platform soon.
arthurprs
For engine slection: SQL Server, SQL Server express scales well. Access also works well for lower user counts, just remember that with Access there is no server piece so all data will come down the wire for any queries which result in a table scan.
skamradt
@arthurprs Cross platform delphi is cooking. With dbxpress you can run your apps in linux now with Wine.
Francis Lee
+1  A: 

I'd say to go with Firebird - is the most used database engine in the Delphi land (see here). For connectivity perhaps is better to go with Zeos (free) or DBX (if you can afford the Architect version - the only one who has the Firebird driver in it).

About ADO: Mature connectivity layer but it will be (forever - most probably) tied to Windows while Delphi will go cross-platform. Also, yes, it tend to be the slower one because of many reasons, including the ODBC drivers which are used in certain situations. But in your case, of course, as skamradt says, I don't think that it will matter so much.

+1  A: 

Although I have read people not liking the idea of mixing the two, I have had good results using ADO Datasets as a "provider layer" which then feeds the data into TClientDataSets - so there's no reason you can't use ClientDataSets if you go down the ADO route if you find you need them (and they are useful).

Otherwise, I would echo the comment that ADO is a tried, trusted mechanism that isn't going anywhere. I've always found it more than fast enough. And configuration using UDL files is nice and easy.

RichardS
A: 
  • dbGo (ADO) is more simple to manage, more universal, more slow
  • dbExpress is more fast, more complex to manage, supports less DBMS's
  • ZeosDBO is simple to manage, universal like dbExp, slow like dbGo, cross-platform, has few additional components, all sources are accessible

There are few other libraries, resolving all above doubts, although all of them are commercial products. But there I am biased :)

da-soft
A: 

We have used postgreSQL using Devart pg components with great success in medium sized database apps. We did some limited benchmarking with this combination and found it 2-3 x the speed of using ADO etc.

becsystems
A: 

-- Data access components

I too favour the combination of TClientDataset and ADO. Had worked with it in past and I can say it's trustful. The flexibility of TClientDataset is a big gain. DBExpress is good too. Actually, I use clientdatasets with pretty much any data access layer that have an TDataset descendant...

-- Server

Firebird. Free and easily usable from OLEDB (I used with ODBC) and DBExpress (D2010+ have native DBX driver) - don't know ZEOS, but I believe that it also connect to FB. Scale well to many connections and big databases. There are databases on Firebird with 500Gb and many users reported.

Fabricio Araujo