Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped...

12
Database tools An SQL layer around CDF

Transcript of Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped...

Page 1: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Database tools

An SQL layer around CDF

Page 2: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Overview

• Current SPENVIS database

• Limitations

• SQL wrapped CDF

• Advantages

• Demonstration

Page 3: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Current SPENVIS database

• Data is stored in Common Data Format file (CDF)

• Programming language (IDL) supports CDF natively

• All SPENVIS tools are “file-aware”• open, read, close• combine multiple files

Page 4: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Limitations of custom database

• Few advanced features/interfaces•New features/interfaces require large

programming overhead

• Difficult to extend SPENVIS functionality•New functions may require database

modification

• Few languages support CDF natively• Awkward intermediate objects

Page 5: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

SQL wrapped CDF

• Off-the-shelf DBMS (PostgreSQL)

• DBMS backend extension (C)•Open, read, close CDF file

• Metadata tables• File, variable, dimension

• Triggers & functions• Automatic population of metadata tables• Epoch arithmetic

Page 6: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Advantages

• Backward compatible•Old tools can still use CDF file access•New tools can use DBMS interface

• New tools are no longer “file-aware”• open, close, multiple files: handled by DBMS

• New data not (necessarily) in files• Improves performance

• Many languages support SQL natively•Choice of best fit technology

Page 7: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Demonstration

HTTP+PHP

DBMS

CDF

Now

HTTP+

PHP

Possible

DBMSCDF

CDFDBMSHTTP+

PHP

Future

Page 8: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Screenshots

Page 9: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Screenshots

Page 10: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Screenshots

Page 11: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Screenshots

Page 12: Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.

Screenshots