dbTalk Databases Forums  

Store derived data or use view?

comp.databases comp.databases


Discuss Store derived data or use view? in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
zaphod
 
Posts: n/a

Default Store derived data or use view? - 07-03-2009 , 01:03 PM






I have a table which stores the absolute longitude of planetary position, eg:

MERCURY
---------------
157.65

SATURN
-------------
247.65

When 2 planets are a certain distance apart there is an 'aspect', eg. 90 degrees is a "square" aspect

I wish to record these aspects for different user profiles and eventually do searches for users who have the same aspect(s). Would it be better, in terms of search speed/efficiency, to calculate and store the aspect data, eg. Mercury/Saturn square, or should I just store the longitude data and create a view with the calculated aspects? I anticipate a large dataset of users so efficiency is very important.

zaphod

Reply With Quote
  #2  
Old   
Jasen Betts
 
Posts: n/a

Default Re: Store derived data or use view? - 07-04-2009 , 05:15 AM






On 2009-07-03, zaphod <abc (AT) def (DOT) com> wrote:
Quote:
I have a table which stores the absolute longitude of planetary position, eg:

MERCURY
---------------
157.65

SATURN
-------------
247.65

When 2 planets are a certain distance apart there is an 'aspect', eg. 90 degrees is a "square" aspect
like astrology?

Quote:
I wish to record these aspects for different user profiles and eventually do searches for users who have the same aspect(s). Would it be better, in terms of search speed/efficiency, to calculate and store the aspect data, eg. Mercury/Saturn square, or should I just store the longitude data and create a view with the calculated aspects? I anticipate a large dataset of users so efficiency is very important.
cpu is faster than disk just store time of birth, index on squareness etc.

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.