New Database Schema

From VistrailsWiki
Revision as of 15:26, 18 February 2011 by Tommy (talk | contribs) (Created page with 'We are proposing an update to the schema for storing a vistrail in a MySQL database. The motivation is: * The current schema requires multiple SQL commands to access and update.…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

We are proposing an update to the schema for storing a vistrail in a MySQL database. The motivation is:

  • The current schema requires multiple SQL commands to access and update. One SELECT query is required for each table we want to extract information from. This gets really slow when the server is far away from the client.

Proposed Improvements

  1. Store all information in a single table.
    Pros:
    • One single command can be used to access and update a vistrail.
    • We can still use a vanilla MySQL server.
    Cons:
    • A lot of redundancy since different objects need different kinds of fields.
    • One big table might lead to slow performance.
    • Difficult to implement.
  1. Add an intermediate server application that can receive and perform multiple SQL commands in batches.
    Pros:
    • No changes to the schema necessary.
    Cons:
    • We have to install a new application on the server side that handles communication between VisTrails and the MySQL server.


  1. Use a more object-focused database such as an XML database.
    Pros:
    • A single query can retrieve a complete vistrail.
    Cons:
    • We would need to install a new database such as eXist
    • We would need to use a different query language such as XQuery
  1. Other ideas?