473,763 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The quest for opensource database...

Perhaps you database guru able to suggest what would be a good choice for
opensource database platform to use to develop projects.

At the moment the project is small/medium, but it will grow in size both
data, users, and number of transactions. I'm using MySQL for right now but
it lack of trigger, stored procedures, etc ... it sometimes slows the
project.

Is PostgreSQL any better/worse? Or is that any other choice beside the two?
Thanks.
Jul 17 '05 #1
14 2329
Ruby Tuesdays wrote:
Perhaps you database guru able to suggest what would be a good choice for
opensource database platform to use to develop projects.

At the moment the project is small/medium, but it will grow in size both
data, users, and number of transactions. I'm using MySQL for right now but
it lack of trigger, stored procedures, etc ... it sometimes slows the
project.

Is PostgreSQL any better/worse? Or is that any other choice beside the
two? Thanks.


Postgresql is VERY robust and VERY rich with features.
You'll love it. I know I do. :-)

Triggers are implemented. As are serial (autonumber), PK, FK, and all other
types of constraints you can conjure up.

A very strong language for scripting stored procedures is implemented too.
(named: plpgsql)

exporting, backing up, everything is there.

Redhat even developed a very nice GUI for Postgresql 7.3, which they call
RHDB (RedHatDataBase ) which is actually Postgresql 7.3 (i didn't find any
differences)
It is called Database Administrator for Postgres Redhat edition3.

I am still running their alpha, but it works like a charm, so why update?

I hope I sound enthousiastic enough, because I really like postgresql. :-)

Regards,
Erwin Moller
Jul 17 '05 #2

"Ruby Tuesdays" <No************ **********@yaho o.com> wrote in message
news:c6******** ****@ID-205437.news.uni-berlin.de...
Perhaps you database guru able to suggest what would be a good choice for
opensource database platform to use to develop projects.

At the moment the project is small/medium, but it will grow in size both
data, users, and number of transactions. I'm using MySQL for right now but
it lack of trigger, stored procedures, etc ... it sometimes slows the
project.
You do not need stored procedures or database triggers to write successful
applications. I once had to maintain a system that was built around
procedures and triggers, and it was a nightmare. The problem was that one
trigger/procedure updated several tables, which fired more triggers which
contained more updates which fired more triggers ..... It was impossible to
keep track of what was being fired where.

Another reason I prefer to put all my business logic into PHP code instead
of triggers is that PHP code is a lot easier to debug. Have you come across
an interactive debugger for database procedures and triggers?

--
Tony Marston

http://www.tonymarston.net
Is PostgreSQL any better/worse? Or is that any other choice beside the two? Thanks.

Jul 17 '05 #3
Tony Marston wrote:

"Ruby Tuesdays" <No************ **********@yaho o.com> wrote in message
news:c6******** ****@ID-205437.news.uni-berlin.de...
Perhaps you database guru able to suggest what would be a good choice for
opensource database platform to use to develop projects.

At the moment the project is small/medium, but it will grow in size both
data, users, and number of transactions. I'm using MySQL for right now
but it lack of trigger, stored procedures, etc ... it sometimes slows the
project.


You do not need stored procedures or database triggers to write successful
applications. I once had to maintain a system that was built around
procedures and triggers, and it was a nightmare. The problem was that one
trigger/procedure updated several tables, which fired more triggers which
contained more updates which fired more triggers ..... It was impossible
to keep track of what was being fired where.

Another reason I prefer to put all my business logic into PHP code instead
of triggers is that PHP code is a lot easier to debug. Have you come
across an interactive debugger for database procedures and triggers?


Very good advise, Tony.
I second that opinion 100%.
Been there too. :-(

Stick to constrainst like foreign keys (which do fire a trigger I think when
the relevant colums are updated/inserted) and avoid writing your own.
And stick to constraints like CHECK to make sure the data inserted makes
sense to you instead of triggers.
Stored procedures do often shorten the developmenttime , but are hard to
debug.
It is often easy to do 'some quick and dirty' solution using stored
procedures, but when something changes in the application (which happens
all the time) you have to debug those SP's too.

Regards,
Erwin Moller
Jul 17 '05 #4
"Tony Marston" <to**@NOSPAM.de mon.co.uk> writes:
You do not need stored procedures or database triggers to write successful
applications. I once had to maintain a system that was built around
procedures and triggers, and it was a nightmare. The problem was that one
trigger/procedure updated several tables, which fired more triggers which
contained more updates which fired more triggers ..... It was impossible to
keep track of what was being fired where.

Right! Gratuitous use of triggers, SPs and the like results in
indirection that can make a system impossible to understand. Use with
care.

But is this a vote in favor of a less advanced system that prevents
the temtation? I don't think so.

YMMV
--
-------------------------------------------------------------------------------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobile http://www.JerrySievers.com/

--
-------------------------------------------------------------------------------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobile http://www.JerrySievers.com/
Jul 17 '05 #5
May be we can get away with the strored procedures. Why would one do
manipulation of the data inside a database engine, right? The function of
database is to store and retrieve information, that's it. Beyond that you
really stretch it and this where scripting language such as Ruby comes in.

But for trigger, to write a commercial grade transaction processing
application, you definitely need trigger. Trigger will aid
programmers/designer to ensure certain consistency checking happen
before/after certain opearation. How would you do that outside the database
engine withouth kludging it?

Just my 2cents back from my college days.
For simple and less-dynamic-update application, you might not need tri
"Tony Marston" <to**@NOSPAM.de mon.co.uk> wrote in message
news:c6******** **********@news .demon.co.uk...

"Ruby Tuesdays" <No************ **********@yaho o.com> wrote in message
news:c6******** ****@ID-205437.news.uni-berlin.de...
Perhaps you database guru able to suggest what would be a good choice for opensource database platform to use to develop projects.

At the moment the project is small/medium, but it will grow in size both
data, users, and number of transactions. I'm using MySQL for right now but it lack of trigger, stored procedures, etc ... it sometimes slows the
project.
You do not need stored procedures or database triggers to write successful
applications. I once had to maintain a system that was built around
procedures and triggers, and it was a nightmare. The problem was that one
trigger/procedure updated several tables, which fired more triggers which
contained more updates which fired more triggers ..... It was impossible

to keep track of what was being fired where.

Another reason I prefer to put all my business logic into PHP code instead
of triggers is that PHP code is a lot easier to debug. Have you come across an interactive debugger for database procedures and triggers?

--
Tony Marston

http://www.tonymarston.net
Is PostgreSQL any better/worse? Or is that any other choice beside the

two?
Thanks.


Jul 17 '05 #6

"Useko Netsumi" <us************ *****@earthlink .net> wrote in message
news:c6******** ****@ID-205437.news.uni-berlin.de...
May be we can get away with the strored procedures. Why would one do
manipulation of the data inside a database engine, right? The function of
database is to store and retrieve information, that's it. Beyond that you
really stretch it and this where scripting language such as Ruby comes in.

But for trigger, to write a commercial grade transaction processing
application, you definitely need trigger. Trigger will aid
programmers/designer to ensure certain consistency checking happen
before/after certain opearation. How would you do that outside the database engine withouth kludging it?
I personally create a separate class for each database table and define the
constraints within that class. I then have standard code which is used to
deal with these constraints at the appropriate time (see
http://www.tonymarston.co.uk/php-mys...eobjects2.html for some
examples). In this way I achieve the following objectives:
(1) The constraint details and business logic for a database table are
contained in the same class, therefore everything is in one place instead of
being scattered about hither and yon.
(2) I am in complete control when it comes to implementing the constraints,
so I have the power to change them at runtime should the need arise.
(3) If I have a problem I can always step through with my debugger.

--
Tony Marston

http://www.tonymarston.net
Just my 2cents back from my college days.
For simple and less-dynamic-update application, you might not need tri
"Tony Marston" <to**@NOSPAM.de mon.co.uk> wrote in message
news:c6******** **********@news .demon.co.uk...

"Ruby Tuesdays" <No************ **********@yaho o.com> wrote in message
news:c6******** ****@ID-205437.news.uni-berlin.de...
Perhaps you database guru able to suggest what would be a good choice for opensource database platform to use to develop projects.

At the moment the project is small/medium, but it will grow in size both data, users, and number of transactions. I'm using MySQL for right now but it lack of trigger, stored procedures, etc ... it sometimes slows the
project.


You do not need stored procedures or database triggers to write successful applications. I once had to maintain a system that was built around
procedures and triggers, and it was a nightmare. The problem was that one trigger/procedure updated several tables, which fired more triggers which contained more updates which fired more triggers ..... It was impossible

to
keep track of what was being fired where.

Another reason I prefer to put all my business logic into PHP code instead of triggers is that PHP code is a lot easier to debug. Have you come

across
an interactive debugger for database procedures and triggers?

--
Tony Marston

http://www.tonymarston.net
Is PostgreSQL any better/worse? Or is that any other choice beside the

two?
Thanks.



Jul 17 '05 #7
But isn't that supposedly the function of the database trigger - that is to
ensure that all contraint are accounted for without kludging it?

But I do get your point though. I'm sure with expertise such as yours, you
can replace those stored procedures/trigger function in PHP or any scripting
language but isn't that stretching it a bit too far?

With stored procedures/trigger, script programmer can concentrate more in
the flow/design of the application where the database programmer can
concentrate on the data storage(and simple data manipulation using strored
procedures) and data constraints(tri gger).

Just my 2cents.
"Tony Marston" <to**@NOSPAM.de mon.co.uk> wrote in message
news:c6******** ***********@new s.demon.co.uk.. .

"Useko Netsumi" <us************ *****@earthlink .net> wrote in message
news:c6******** ****@ID-205437.news.uni-berlin.de...
May be we can get away with the strored procedures. Why would one do
manipulation of the data inside a database engine, right? The function of
database is to store and retrieve information, that's it. Beyond that you really stretch it and this where scripting language such as Ruby comes in.
But for trigger, to write a commercial grade transaction processing
application, you definitely need trigger. Trigger will aid
programmers/designer to ensure certain consistency checking happen
before/after certain opearation. How would you do that outside the database
engine withouth kludging it?


I personally create a separate class for each database table and define

the constraints within that class. I then have standard code which is used to
deal with these constraints at the appropriate time (see
http://www.tonymarston.co.uk/php-mys...eobjects2.html for some
examples). In this way I achieve the following objectives:
(1) The constraint details and business logic for a database table are
contained in the same class, therefore everything is in one place instead of being scattered about hither and yon.
(2) I am in complete control when it comes to implementing the constraints, so I have the power to change them at runtime should the need arise.
(3) If I have a problem I can always step through with my debugger.

--
Tony Marston

http://www.tonymarston.net
Just my 2cents back from my college days.
For simple and less-dynamic-update application, you might not need tri
"Tony Marston" <to**@NOSPAM.de mon.co.uk> wrote in message
news:c6******** **********@news .demon.co.uk...

"Ruby Tuesdays" <No************ **********@yaho o.com> wrote in message
news:c6******** ****@ID-205437.news.uni-berlin.de...
> Perhaps you database guru able to suggest what would be a good choice
for
> opensource database platform to use to develop projects.
>
> At the moment the project is small/medium, but it will grow in size both > data, users, and number of transactions. I'm using MySQL for right
now but
> it lack of trigger, stored procedures, etc ... it sometimes slows
the > project.

You do not need stored procedures or database triggers to write

successful applications. I once had to maintain a system that was built around
procedures and triggers, and it was a nightmare. The problem was that one trigger/procedure updated several tables, which fired more triggers which contained more updates which fired more triggers ..... It was impossible to
keep track of what was being fired where.

Another reason I prefer to put all my business logic into PHP code instead of triggers is that PHP code is a lot easier to debug. Have you come

across
an interactive debugger for database procedures and triggers?

--
Tony Marston

http://www.tonymarston.net

> Is PostgreSQL any better/worse? Or is that any other choice beside

the two?
> Thanks.
>
>



Jul 17 '05 #8

"Useko Netsumi" <us************ *****@earthlink .net> wrote in message
news:c6******** ****@ID-205437.news.uni-berlin.de...
But isn't that supposedly the function of the database trigger - that is to ensure that all contraint are accounted for without kludging it?

But I do get your point though. I'm sure with expertise such as yours, you
can replace those stored procedures/trigger function in PHP or any scripting language but isn't that stretching it a bit too far?
It is not stretching anything at all. In my early days of programming, which
was before relational databases were fashionable, none of the database
management systems had triggers or procedures, so I learned to write entire
applications without them.
With stored procedures/trigger, script programmer can concentrate more in
the flow/design of the application where the database programmer can
concentrate on the data storage(and simple data manipulation using strored
procedures) and data constraints(tri gger).


I don't work on projects where the database, business logic and screen
layout are dealt with by separate people as this is a recipe for disaster.
There is nothing in a stored procedure or database trigger that I cannot
achieve more easily with PHP code, it is easier to control and it is far
easier to debug.

--
Tony Marston

http://www.tonymarston.net

Jul 17 '05 #9
to**@NOSPAM.dem on.co.uk says...

"Ruby Tuesdays" <No************ **********@yaho o.com> wrote in message
news:c6******** ****@ID-205437.news.uni-berlin.de...
Perhaps you database guru able to suggest what would be a good choice for
opensource database platform to use to develop projects.
Sorry, can't confidently recommend. Am spoilt, have Oracle.
At the moment the project is small/medium, but it will grow in size both
data, users, and number of transactions. I'm using MySQL for right now but
it lack of trigger, stored procedures, etc ... it sometimes slows the
project.
You do not need stored procedures or database triggers to write successful
applications.


But they can be very beneficial.
I once had to maintain a system that was built around
procedures and triggers, and it was a nightmare. The problem was that one
trigger/procedure updated several tables, which fired more triggers which
contained more updates which fired more triggers ..... It was impossible to
keep track of what was being fired where.
Bad design/code is bad design/code no matter at what "layer" it is
written. Doesn't mean you should throw the baby out with the bath
water.
Another reason I prefer to put all my business logic into PHP code instead
of triggers is that PHP code is a lot easier to debug.
I use stored procedures and triggers for things like serialized
transactions, audit logs and complex calculations. In general (in Oracle
at least) nearly everything that can be done inside the "database
level" is more efficient, sometimes massively so, than the same thing
written at the PHP "applicatio n level".

I've fought similar anti-database-level-coding arguments against the use
of database referential integrity constraints.
Have you come across
an interactive debugger for database procedures and triggers?


For Oracle many exist, if you have the necessary $$$.

Geoff M
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2477
by: michael newport | last post by:
Oracle opens arms to Mozilla By Stephen Shankland and Alorie Gilbert, CNET News.com Oracle wants its applications to integrate better with Mozilla's open-source desktop software Oracle is working on a project to let Mozilla's open-source desktop software work better with Oracle's business applications, in the latest move by the database giant to promote open-source software.
0
1396
by: gnu | last post by:
- TCP/IP stack comes from OpenSource BSD. Can't deny that, huh? - XUL (where Microsoft stole XAML from): OpenSource Mozilla - Being free and evolve rapidly, isn't that a major innovation to the business model? - Mosaic, first browsers were developed as OpenSource. - Linux is bootable from memory sticks, SD cards, there're LiveCDs
385
17282
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like extraneous jargons, such as in the Unix & Perl community. Unlike mathematicians, where in mathematics there are no fewer jargons but each and every one are
1
2407
by: Trent | last post by:
Hello, I was wondering if anyone here could help with a Quest Central issue. I have two different hosts listed in Quest Central. Each host has a database on it, but the databases have the *same* name. I can add the database to the first host OK. But when I try to add the second host's database, I get an error saying "Database name already exists." Is there a way around this problem? Why does it matter if databases
3
1726
by: Robert Stearns | last post by:
Apparently due to an intellectual property suit by CA, Quest Central for DB2 has gone away. They can/will not sell any license extensions. In a project I am doing, we make extensive use of quest due to its ease of use and speed. If you know of a product with similar capabilities, please let me know. My license is running out this month. Inexpensive is very important since we're a dining room table startup.
2
1446
by: cracker | last post by:
Microsoft has dominated the world of computing for many years, with its heavily guarded 'code' being beyond reach to many in the developing nations. In some of the poorest countries the cost of upgrading an operating system to keep up with the rest of the world amounts to a year's wages, and there are few legitimate options. In Thailand for example, 95 percent of software on computers is pirated. The poorest countries are now beginning to...
4
2035
by: Konstantin Andreev | last post by:
Recently I was engaged in the database optimization for one big commercial application. During this business I was greatly astound by the fact that it's impossible in DB2 to get the accurate size of a table. Indeed, the disk space occupied by a table is composed from three parts: # part size information @ - ------------------ ------------------ 1) data (except LOBs) syscat.tables: (npages,fpages) - exact info 2) indexes ...
4
1556
by: bj7lewis | last post by:
I am currently C++/Win32/MFC & C# programmer using VS.NET 2002 and jumped into VS.NET 2003 but that was a waste so I skipped VS.NET 2005 cause buying VS.NET 2003. Now after checking out VS.NET 2008 Beta2 I think VS.NET 2008 is worth the upgrade. But I want to hold off(five+ years depending on features) on more further upgrades OSs & ISEs cause of too many releases - too soon - too much money.... So now going to VS.NET 2008 I want to setup a...
0
1648
by: danbst | last post by:
There are script languages compiled at runtime. So, we can download interpreter and code-file to run the program. Everybody knows it. here is my idea. I create redistributable package (for *nix and win platforms) with compilers/interpreters of Python language, including for example, QT, TCL and other crossplatform libraries. then I create .exe file to access this interpreter in win platform, bin-file to access interpreter in *nix platform,...
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.