Re: [GENERAL] Question about performance - Postgres 9.5

2016-08-16 Thread Sameer Kumar
On Wed, 17 Aug 2016, 1:36 p.m. Venkata B Nagothi, wrote: > On Mon, Jun 13, 2016 at 8:37 AM, Patrick B > wrote: > >> Hi guys, >> >> In the db I'm working one, it will be three tables: >> >> visits, work, others. >> >> Everything the customer do, will be logged. All inserts/updates/deletes >> will

Re: [GENERAL] Question about performance - Postgres 9.5

2016-08-16 Thread Venkata B Nagothi
On Mon, Jun 13, 2016 at 8:37 AM, Patrick B wrote: > Hi guys, > > In the db I'm working one, it will be three tables: > > visits, work, others. > > Everything the customer do, will be logged. All inserts/updates/deletes > will be logged. > > Option 1: Each table would have its own log table. > vis

Re: [GENERAL] Question about performance - Postgres 9.5

2016-06-12 Thread Patrick B
Also... if something is changed inside the visits table (delete/insert/update), the visits_logs table will be logging the change. However, some joins between those three tables will become necessary in some point, as visits and works tables are related somehow...

[GENERAL] Question about performance - Postgres 9.5

2016-06-12 Thread Patrick B
Hi guys, In the db I'm working one, it will be three tables: visits, work, others. Everything the customer do, will be logged. All inserts/updates/deletes will be logged. Option 1: Each table would have its own log table. visits_logs, work_logs, others_logs Option 2: All the logs would be stor

Re: [GENERAL] question about performance

2008-07-21 Thread A. Kretschmer
am Mon, dem 21.07.2008, um 9:40:19 +0200 mailte Torsten Zühlsdorff folgendes: > A. Kretschmer schrieb: > > >>if I have a table, the_table, with a DATE field, i'll call it 'day', and > >>I'd like to find all rows whos day falls within a given month, which of > >>the following methods is faster/

Re: [GENERAL] question about performance

2008-07-21 Thread Torsten Zühlsdorff
A. Kretschmer schrieb: if I have a table, the_table, with a DATE field, i'll call it 'day', and I'd like to find all rows whos day falls within a given month, which of the following methods is faster/costs less: 1. SELECT * FROM the_table WHERE day LIKE '2008-01-%'; 2.

Re: [GENERAL] question about performance

2008-07-20 Thread Alan Hodgson
On Sunday 20 July 2008, Robert Urban <[EMAIL PROTECTED]> wrote: > Hi PostgreSQLer, > > if I have a table, the_table, with a DATE field, i'll call it 'day', and > I'd like to find all rows whos day falls within a given month, which of > the following methods is faster/costs less: > > 1. > > SE

Re: [GENERAL] question about performance

2008-07-20 Thread A. Kretschmer
am Sun, dem 20.07.2008, um 20:08:21 +0200 mailte Robert Urban folgendes: > Hi PostgreSQLer, > > if I have a table, the_table, with a DATE field, i'll call it 'day', and > I'd like to find all rows whos day falls within a given month, which of the > following methods is faster/costs less: > > 1

[GENERAL] question about performance

2008-07-20 Thread Robert Urban
Hi PostgreSQLer, if I have a table, the_table, with a DATE field, i'll call it 'day', and I'd like to find all rows whos day falls within a given month, which of the following methods is faster/costs less: 1. SELECT * FROM the_table WHERE day LIKE '2008-01-%'; 2. SE

Re: [GENERAL] question about performance of libpq

2006-06-20 Thread Lee Riquelmei
I am so sorry. I sent a mail draft.On 6/20/06, Lee Riquelmei <[EMAIL PROTECTED]> wrote: hi,all. A strange question is as follows:I have two PCs:machine A: FreeBSD 5.4 with PostgreSQL 8.1.2machine B: Windows XP with PostgreSQL 8.1.2A and B are with same hardware configuration and in a 100Mbit LAN.

[GENERAL] question about performance of libpq

2006-06-20 Thread Lee Riquelmei
hi,all. A strange question is as follows:I have two PCs:machine A: FreeBSD 5.4 with PostgreSQL 8.1.2machine B: Windows XP with PostgreSQL 8.1.2A and B are with same hardware configuration and in a 100Mbit LAN. a large table "lineitem" about 600572 rows exists in both A and B.On machine B, i run psq

[GENERAL] question about performance of libpq

2006-06-20 Thread Lee Riquelmei
hi,all. A strange question is as follows:I have two PCs:machine A: FreeBSD 5.4machine B: Windows XP.Both of them