Personal tools

Difference between revisions of "Database structure"

From PhotoVoltaic Logger new generation

Jump to: navigation, search
m (pvlng_babelkit)
m (pvlng_tree)
Line 13: Line 13:
 
The channel tree is organized in a nested set structure.
 
The channel tree is organized in a nested set structure.
  
<blockquote>The nested set model is a particular technique for representing nested sets (also known as trees or hierarchies) in relational databases. -- [[Wikipedia:Nested set model]]</blockquote>
+
<blockquote>The nested set model is a particular technique for representing nested sets (also known as trees or hierarchies) in relational databases.
 +
<cite>[[Wikipedia:Nested set model]]</cite></blockquote>
  
 
[http://www.evanpetersen.com/item/nested-sets.html More theory] about nested sets.
 
[http://www.evanpetersen.com/item/nested-sets.html More theory] about nested sets.
 +
  
 
[[File:DBTableTree.png]]
 
[[File:DBTableTree.png]]

Revision as of 17:23, 10 March 2014

Abstract

pvlng_type

DBTableType.png

pvlng_channel

DBTableChannel.png

pvlng_tree

The channel tree is organized in a nested set structure.

The nested set model is a particular technique for representing nested sets (also known as trees or hierarchies) in relational databases. Wikipedia:Nested set model

More theory about nested sets.


DBTableTree.png

pvlng_reading_num / pvlng_reading_str

DBTableReadingNum.png DBTableReadingStr.png

The difference between the reading tables is only the data format for reading values.

The timestamps are not stored as "normal" timestamp type, but as unsigned integer.

It was tested and have significant more performance for consolidated data readouts.

pvlng_babelkit

Here are stored all translations for the web frontend.

DBTableBabelkit.png