pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vinicius Bernardi <vinicius.bernardi@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Million of rows
Date: Tue, 29 Mar 2005 15:33:24 -0300
Message-ID: <b30adfa205032910335a467c12@mail.gmail.com> (raw)

Hi everybody...

I'm new hear, and I will try to explain my problem, and maybe I can
get a help...

I'm writing a software for 3 years, and this software has the position
GPS from vehicles, and other informations.

My problem starts when I had to store all the data about the vehicles,
about 1 or 2 months.

Actually I had a table called DADO_LIDO, that I write all information
and the primary key is DATA (GPS DAY+HOUR) and the VEHICLE IDENTIFY.

Each vehicle trasmit 1 position by 30 seconds, so I have something
like 2000 rows per vehicle/day. I already has 2 clients one with 4000
vehicles, and the other with 500 vehicles.

My application was made in delphi using ZEOS that's permit me testing
in mysql and postgres.

I allready has the two databases.

But now the problem starts when I has to select data from this
vehicles about the history ( I store only 2 months ) something like 40
or 50 millions of data about 500 vehicles.

Using the keys VEHICLE_ID and GPS_TIME, the perfomance is very low...

I need some ideas for a better perfomance in this table

using selects by 
PERIOD / VEHICLE
PERIOD / VEHICLES
PERIOD / VEHICLE / ( a bit test in 3 integer columns using logical operators )

Thanks for any help

Vinicius Marques De Bernardi



view thread (3+ messages)  latest in thread

Message-ID: <b30adfa205032910335a467c12@mail.gmail.com>
Permalink:  ../b30adfa205032910335a467c12@mail.gmail.com/
Also on:    postgresql.org/message-id/b30adfa205032910335a467c12@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: vinicius.bernardi@gmail.com
  Subject: Re: Million of rows
  In-Reply-To: <b30adfa205032910335a467c12@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox