Re: :Posgres - performance problem

From: "lucas(dot)gary(at)gmail(dot)com" <lucas(dot)gary(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: ginkgo36 <ginkgo56(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: :Posgres - performance problem
Date: 2015-03-25 14:56:26
Message-ID: CAJYeQ0gCYA9LFWJ4JSTPp3to04nfV=LNpUcBVfDjc5O18d9yhw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"I need gather data into one table for consistency and easy for export and
import, it's ok if I split data to smaller tables, but when
export/import/update, i must excute query on alot of table. And this way
lead data to inconsistency if I forget update/export/import on 1 or more
table. It is terrible."

That statement is wrong on many levels:

- Easy for import and export...
- Multiple tables / one table are identical for import export
purposes.
- export/import/update, i must excute query on alot of table.
- That's what SQL is for...
- lead data to inconsistency if I forget update/export/import on 1 or
more
table. It is terrible.
- You build your process once and test it... Additional runs of the
process are 'free'...

And as someone else mentioned, the 34 indexes are additional tables anyway.

There is probably a way to optimize your current system... There often is
no matter how horrible the implementation...

But I would start by normalizing that as much as possible and then running
performance tests against a normalized jobs. There's lots of tools to do
that... But they probably aren't much help with your current schema.

Gary

On Wed, Mar 25, 2015 at 7:43 AM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

> On 03/25/2015 07:30 AM, ginkgo36 wrote:
>
>> @Gary
>> I'm working on big data, because of the demands of the job so I
>> export/import/update data on this table every day.
>>
>> I guess it's possible that each query would need all 417 columns but it
>> seems unlikely... --> Yes, not at all but 2/3 of 417 columns :)
>>
>
> There is also the matter of the 34 indexes, which can thought of as 34
> axillary tables that need to be kept in sync with the main table.
>
>
>> I need gather data into one table for consistency and easy for export and
>> import, it's ok if I split data to smaller tables, but when
>> export/import/update, i must excute query on alot of table. And this way
>> lead data to inconsistency if I forget update/export/import on 1 or more
>> table. It is terrible.
>>
>>
>> @John
>>
>> I will learing about it. Thanks alot.
>>
>> @All: If you have any suggestion, please let me known. Thanks for you help
>>
>>
>>
>>
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John McKown 2015-03-25 17:25:38 OT? Turing Award goes to one of original authors of proto-PostgreSQL
Previous Message Adrian Klaver 2015-03-25 14:51:26 Re: Postgresql 9.5