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 > General > Database Concepts & Design > Time series and events - best structure?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-07, 23:53
dcum007 dcum007 is offline
Registered User
 
Join Date: Apr 2007
Posts: 1
Time series and events - best structure?

I have a large amount of data from recordings (around 100Hz as well as 1Hz and less) and event data (time and event). I am wanting to know the best structure to use which will keep the size of the db down, enable easy searching of the data within the recordings (all records where the value is above X).

At the moment I'm thinking of a simple relational design:
Recording
-RecordingID
-Comments
-EventID
-SignalId

Event
-EventID
-Time
-Event
-Comment

Signal
-SignalID
-TimeSeriesID
-SignalValuesID

TimeSeries
-TimeSeriesID
-Values

SignalValues
-SignalValuesID
-Values

I'm not sure this is the best way - can anyone help please?

Thanks,
David
Reply With Quote
  #2 (permalink)  
Old 04-23-07, 06:30
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
we're even less sure than you are, because you're familiar with what you're doing and we're not

maybe if you gave several sample rows from each table so we could understand your data?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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