If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Problem with distinct values

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-24-11, 06:48
krontrex krontrex is offline
Registered User
 
Join Date: Sep 2010
Posts: 37
Problem with distinct values

Dear all,
As a db grows fetching distinct values gets more and more time consuming. What is the best practice for solving this problem:
1) Create separate tables for each columns of which distinct values are required
2) Create one table with two columns: 1)name of the column and 2) multiple distinct values (Is it possible to store in a cell multiple values, such arrays etc)
3) Do you know some more proficient solution?
Thanks
Reply With Quote
  #2 (permalink)  
Old 06-28-11, 01:29
janz892033 janz892033 is offline
Registered User
 
Join Date: Jun 2011
Posts: 1
Hi ya matey

I also came across the same problem of having slow distinct values,
i don't know if this really could help you .

see this link, about postgres tricks.
PostgreSQL SQL Tricks - PostgreSQL

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On