Transaction Speed and real time database

Lists: pgsql-hackers
From: "moises" <moises(at)cedaivc(dot)co(dot)cu>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Transaction Speed
Date: 2006-07-20 12:36:53
Message-ID: 20060720183616.9A7549FB500@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Can any body talk me how many transactions make postgres in a second?

For example Inserts, Update, delete, etc.

I’m very interesting in this data, because I want to use postgres for a real
time database for process control.

Thanks and regards

________________________________________

M.Sc.Moisés Herrera Vázquez

Especialista Superior en Automática

Empresa de Automatización Integral, CEDAI

Sucursal Villa Clara.

Teléfono: (53) 42 -203311

_______________________________________


From: "Adnan DURSUN" <a_dursun(at)hotmail(dot)com>
To: "moises" <moises(at)cedaivc(dot)co(dot)cu>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Transaction Speed
Date: 2006-07-20 21:04:34
Message-ID: BAY106-DAV2372A124F72D211EE09641FA610@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


This depends on your server capability and performance.. You can use PostgreSQL as real time database. It is real not a toy :-)

Adnan DURSUN
ASRIN Bilisim Ltd.
Turkey
----- Original Message -----
From: moises
To: pgsql-hackers(at)postgresql(dot)org
Sent: Thursday, July 20, 2006 3:36 PM
Subject: [HACKERS] Transaction Speed

Can any body talk me how many transactions make postgres in a second?

For example Inserts, Update, delete, etc.

I'm very interesting in this data, because I want to use postgres for a real time database for process control.

Thanks and regards

________________________________________

M.Sc.Moisés Herrera Vázquez

Especialista Superior en Automática

Empresa de Automatización Integral, CEDAI

Sucursal Villa Clara.

Teléfono: (53) 42 -203311

_______________________________________



From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: moises <moises(at)cedaivc(dot)co(dot)cu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Transaction Speed
Date: 2006-07-20 21:18:01
Message-ID: 44BFF309.4000104@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

moises wrote:
> Can any body talk me how many transactions make postgres in a second?
>

It depends on many things
1) speed of hardware/OS/number of disks/type of disks, if you use RAID
or not ...
2) number concurrent access
3) size of processed data in one transaction
4) database model
...

It not possible determine. You must take some machine and perform some
own test.

>
>
>
> I’m very interesting in this data, because I want to use postgres for a
> real time database for process control.

I'm not sure if postgres is good database for real time application. You
need know maximal response time for realtime application and I afraid
that postgres is not good choice for RTA. (MySQL, Firebird, Oracle ...
have same limitation ...)

Zdenek


From: "moises" <moises(at)cedaivc(dot)co(dot)cu>
To: "'Adnan DURSUN'" <a_dursun(at)hotmail(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Transaction Speed and real time database
Date: 2006-07-21 07:38:41
Message-ID: 20060721133804.256C19FAD5A@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Thanks for your answer,

I have experience with postgres and I know perfectly that not a TOY.

But some concepts of real time system don’t based only in speed.

Real time databases needs some other kinds of semantics and features that
postgres don’t have.

Postgres don’t supports real time constrains semantics in transactions. In
other hands the concurrent transactions don’t wok well based on priorities
of task.

The program scheduler of transaction based on real time mechanism like
system how RTAI, or RTlinux, and much more.

POstrgres need to be extending for real time databases.

I want to know, in a hypothetical server, how many transaction postgres
support for a first approximation.

I found this data of MySQL and DB4o data bases but I can´t find any of
Postgres.

A mite that postgres is slow, but I need some numbers, insertion speed, and
update speed is the more important part?

Thanks

M.

_____

De: Adnan DURSUN [mailto:a_dursun(at)hotmail(dot)com]
Enviado el: jueves, 20 de julio de 2006 23:05
Para: moises; pgsql-hackers(at)postgresql(dot)org
Asunto: Re: [HACKERS] Transaction Speed

This depends on your server capability and performance.. You can
use PostgreSQL as real time database. It is real not a toy :-)

Adnan DURSUN
ASRIN Bilisim Ltd.

Turkey

----- Original Message -----

From: moises <mailto:moises(at)cedaivc(dot)co(dot)cu>

To: pgsql-hackers(at)postgresql(dot)org

Sent: Thursday, July 20, 2006 3:36 PM

Subject: [HACKERS] Transaction Speed

Can any body talk me how many transactions make postgres in a second?

For example Inserts, Update, delete, etc.

I’m very interesting in this data, because I want to use postgres for a real
time database for process control.

Thanks and regards

________________________________________

M.Sc.Moisés Herrera Vázquez

Especialista Superior en Automática

Empresa de Automatización Integral, CEDAI

Sucursal Villa Clara.

Teléfono: (53) 42 -203311

_______________________________________


From: Enver ALTIN <ealtin(at)parkyeri(dot)com>
To: moises <moises(at)cedaivc(dot)co(dot)cu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Transaction Speed
Date: 2006-07-21 08:11:17
Message-ID: 20060721081117.GG21070@alfa147
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

On Thu, Jul 20, 2006 at 02:36:53PM +0200, moises wrote:
> For example Inserts, Update, delete, etc.

If you need a storage for structured data, database servers are good to
go. If you need a very fast "flow" of not-so-needed and
okay-to-miss-we-can-regenerate type of data storage you can go with
in-memory storage such as memcache[1] or PostgreSQL's temporary
table[2] feature. I think the latter would slightly perform better.

Enjoy,

[1] http://www.danga.com/memcached/
[2] http://www.postgresql.org/docs/8.1/static/sql-createtable.html
--
Enver


From: "moises" <moises(at)cedaivc(dot)co(dot)cu>
To: "'Martijn van Oosterhout'" <kleptog(at)svana(dot)org>
Cc: "'Adnan DURSUN'" <a_dursun(at)hotmail(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Transaction Speed and real time database
Date: 2006-07-21 11:15:14
Message-ID: 20060721171434.909909FA3B4@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hello,
Thanks for your answer.
Maybe I asking a wrong question, but I just need some ideas like you say
that posgres can insert 100,000 rows per second, is a good approximation...
In other hand if you visit some links like
http://developer.db4o.com/forums/post/25599.aspx
You will find something like this in Spanish
You can store 250 millions objects with just constant 40 MB RAM and constant
insertions about 8.000 objects per second -- these measures had been take in
a show HDD 5600 rpm. It had been stored 100.000 objects with less than
constant 2MB RAM. Db4o can store in 10 millions of objects in 400
milliseconds.

How can you see, this numbers are just I want but for postgres.

I know that hardware is very important, join to OS and config of Shared
Memory, System V, etc, but I just looking for an Idea. Suppose that every
body say me that POStgres is to slow for real time databases, then I will be
very full trying to resolve this problems with postgres, don't think that?

Thanks again.

Moises

-----Mensaje original-----
De: pgsql-hackers-owner(at)postgresql(dot)org
[mailto:pgsql-hackers-owner(at)postgresql(dot)org] En nombre de Martijn van
Oosterhout
Enviado el: viernes, 21 de julio de 2006 16:19
Para: moises
CC: 'Adnan DURSUN'; pgsql-hackers(at)postgresql(dot)org
Asunto: Re: [HACKERS] Transaction Speed and real time database

On Fri, Jul 21, 2006 at 09:38:41AM +0200, moises wrote:
> I want to know, in a hypothetical server, how many transaction postgres
> support for a first approximation.
>
> I found this data of MySQL and DB4o data bases but I can´t find any of
> Postgres.

I think you're asking the wrong question. I think what you want is
"what performence does postgresql get on benchmark X with hardware Y".
I don't beleive you actually get performence numbers for other
databases without a whole list of constraining factors. You need to be
a lot more specific about what you want to know. You can find
benchmarks on the web, but really you need to evaluate whether they're
testing what you want to know.

But ok, here's a number: I can insert 100,000 rows per second on this
machine next to me. How does that help you? It doesn't: you don't know
the machine or the software or how it's configured or what I'm
inserting. You don't even know if this machine exists (hint: it
doesn't).

Also, insert/update speeds are useless measurements. If all you want is
that, please look at berkley DB. PostgreSQL is a SQL compliant
database.

Anyway, here are some sites to help you formulate your question better:

http://www.geocities.com/mailsoftware42/db/
http://www.devx.com/dbzone/Article/29480?trk=DXRSS_DB

Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to
litigate.


From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: moises <moises(at)cedaivc(dot)co(dot)cu>
Cc: 'Adnan DURSUN' <a_dursun(at)hotmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Transaction Speed and real time database
Date: 2006-07-21 14:18:46
Message-ID: 20060721141846.GC21076@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Jul 21, 2006 at 09:38:41AM +0200, moises wrote:
> I want to know, in a hypothetical server, how many transaction postgres
> support for a first approximation.
>
> I found this data of MySQL and DB4o data bases but I can´t find any of
> Postgres.

I think you're asking the wrong question. I think what you want is
"what performence does postgresql get on benchmark X with hardware Y".
I don't beleive you actually get performence numbers for other
databases without a whole list of constraining factors. You need to be
a lot more specific about what you want to know. You can find
benchmarks on the web, but really you need to evaluate whether they're
testing what you want to know.

But ok, here's a number: I can insert 100,000 rows per second on this
machine next to me. How does that help you? It doesn't: you don't know
the machine or the software or how it's configured or what I'm
inserting. You don't even know if this machine exists (hint: it
doesn't).

Also, insert/update speeds are useless measurements. If all you want is
that, please look at berkley DB. PostgreSQL is a SQL compliant
database.

Anyway, here are some sites to help you formulate your question better:

http://www.geocities.com/mailsoftware42/db/
http://www.devx.com/dbzone/Article/29480?trk=DXRSS_DB

Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: moises <moises(at)cedaivc(dot)co(dot)cu>
Cc: 'Martijn van Oosterhout' <kleptog(at)svana(dot)org>, 'Adnan DURSUN' <a_dursun(at)hotmail(dot)com>, postgres hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Transaction Speed and real time database
Date: 2006-07-21 17:28:19
Message-ID: 1153502899.5683.312.camel@coppola.muc.ecircle.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> [snip] Suppose that every
> body say me that POStgres is to slow for real time databases, then I will be
> very full trying to resolve this problems with postgres, don't think that?

I think you didn't understand correctly: postgres is not slow, it is
just not suitable for real RT applications because of a few reasons,
which in fact make other data bases also not suitable for this purpose.

The main concern is that a RT application usually needs predictable
response times, possibly with guaranties for upper bounds of response
times... and most data bases which are transactional and offer
concurrent access won't give you such guaranties, due to locking issues.

The question is, your application is really RT in the proper sense of
the word, or it is just an OLTP application which needs to be fast but
won't cause a nuclear explosion if one response in 100 will be slower
than expected... in that case postgres might be good for you.

Cheers,
Csaba.


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: moises <moises(at)cedaivc(dot)co(dot)cu>
Cc: "'Martijn van Oosterhout'" <kleptog(at)svana(dot)org>, "'Adnan DURSUN'" <a_dursun(at)hotmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Transaction Speed and real time database
Date: 2006-07-21 17:29:10
Message-ID: 44C10EE6.2070804@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


What you are asking is essentially the equivalent of asking "How long is
a piece of string?" The question is meaningless and so will be any
answer. The fact that there are web sites which are happy to supply you
with meaningless information doesn't mean we should follow suit.

And frankly, I would be very dubious about using PostgreSQL or just
about any other RDBMS in a Real Time System, hard or soft.

cheers

andrew

moises wrote:
> Hello,
> Thanks for your answer.
> Maybe I asking a wrong question, but I just need some ideas like you say
> that posgres can insert 100,000 rows per second, is a good approximation...
> In other hand if you visit some links like
> http://developer.db4o.com/forums/post/25599.aspx
> You will find something like this in Spanish
> You can store 250 millions objects with just constant 40 MB RAM and constant
> insertions about 8.000 objects per second -- these measures had been take in
> a show HDD 5600 rpm. It had been stored 100.000 objects with less than
> constant 2MB RAM. Db4o can store in 10 millions of objects in 400
> milliseconds.
>
> How can you see, this numbers are just I want but for postgres.
>
> I know that hardware is very important, join to OS and config of Shared
> Memory, System V, etc, but I just looking for an Idea. Suppose that every
> body say me that POStgres is to slow for real time databases, then I will be
> very full trying to resolve this problems with postgres, don't think that?
>
> Thanks again.
>
> Moises
>
> -----Mensaje original-----
> De: pgsql-hackers-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-owner(at)postgresql(dot)org] En nombre de Martijn van
> Oosterhout
> Enviado el: viernes, 21 de julio de 2006 16:19
> Para: moises
> CC: 'Adnan DURSUN'; pgsql-hackers(at)postgresql(dot)org
> Asunto: Re: [HACKERS] Transaction Speed and real time database
>
> On Fri, Jul 21, 2006 at 09:38:41AM +0200, moises wrote:
>
>> I want to know, in a hypothetical server, how many transaction postgres
>> support for a first approximation.
>>
>> I found this data of MySQL and DB4o data bases but I can´t find any of
>> Postgres.
>>
>
> I think you're asking the wrong question. I think what you want is
> "what performence does postgresql get on benchmark X with hardware Y".
> I don't beleive you actually get performence numbers for other
> databases without a whole list of constraining factors. You need to be
> a lot more specific about what you want to know. You can find
> benchmarks on the web, but really you need to evaluate whether they're
> testing what you want to know.
>
> But ok, here's a number: I can insert 100,000 rows per second on this
> machine next to me. How does that help you? It doesn't: you don't know
> the machine or the software or how it's configured or what I'm
> inserting. You don't even know if this machine exists (hint: it
> doesn't).
>
> Also, insert/update speeds are useless measurements. If all you want is
> that, please look at berkley DB. PostgreSQL is a SQL compliant
> database.
>
> Anyway, here are some sites to help you formulate your question better:
>
> http://www.geocities.com/mailsoftware42/db/
> http://www.devx.com/dbzone/Article/29480?trk=DXRSS_DB
>
> Hope this helps,
>


From: Hannu Krosing <hannu(at)skype(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: moises <moises(at)cedaivc(dot)co(dot)cu>, 'Martijn van Oosterhout' <kleptog(at)svana(dot)org>, 'Adnan DURSUN' <a_dursun(at)hotmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Transaction Speed and real time database
Date: 2006-07-21 20:42:36
Message-ID: 1153514556.2912.7.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Ühel kenal päeval, R, 2006-07-21 kell 13:29, kirjutas Andrew Dunstan:
> What you are asking is essentially the equivalent of asking "How long is
> a piece of string?" The question is meaningless and so will be any
> answer. The fact that there are web sites which are happy to supply you
> with meaningless information doesn't mean we should follow suit.
>
> And frankly, I would be very dubious about using PostgreSQL or just
> about any other RDBMS in a Real Time System, hard or soft.

It would probably be possible to get constant-time inserts into an
indexless table, once checkpoints are spread out over the whole
checpoint interval, as described by the NTT staff at the conference, but
this is probably the only RT compatible scenario you can expect from an
RDBMS.

Another way to get RT is just use long required completion times and
light enough load on db that you always meet your time limit.

Remember, RT does not neccesarily mean Fast it just needs to be
Predictable!

--
----------------
Hannu Krosing
Database Architect
Skype Technologies OÜ
Akadeemia tee 21 F, Tallinn, 12618, Estonia

Skype me: callto:hkrosing
Get Skype for free: http://www.skype.com


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Hannu Krosing <hannu(at)skype(dot)net>
Subject: Re: Transaction Speed and real time database
Date: 2006-07-21 22:49:49
Message-ID: 44C15A0D.6040001@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hannu Krosing wrote:
> Ühel kenal päeval, R, 2006-07-21 kell 13:29, kirjutas Andrew Dunstan:
>
>> What you are asking is essentially the equivalent of asking "How long is
>> a piece of string?" The question is meaningless and so will be any
>> answer. The fact that there are web sites which are happy to supply you
>> with meaningless information doesn't mean we should follow suit.
>>
>> And frankly, I would be very dubious about using PostgreSQL or just
>> about any other RDBMS in a Real Time System, hard or soft.
>>
>
> It would probably be possible to get constant-time inserts into an
> indexless table, once checkpoints are spread out over the whole
> checpoint interval, as described by the NTT staff at the conference, but
> this is probably the only RT compatible scenario you can expect from an
> RDBMS.
>
> Another way to get RT is just use long required completion times and
> light enough load on db that you always meet your time limit.
>
> Remember, RT does not neccesarily mean Fast it just needs to be
> Predictable!
>
>

Increasing required time constraints only lowers the likelihood that you
will fail to meet RT requirements, rather than eliminating it.

I suspect that for genuine RT performance we'd need to build in some
sort of preemption mechanism (although I freely confess this isn't my
area of expertise).

cheers

andrew