My company uses ElevateDB in one of our products. However, our database is just a bunch of tables. Recently, as more features are designed and more modules are added, we have found out our data is no longer “bunch of unrelated tables”, but it begins to be real data structure.
I have no previous experience with ElevateDB, I worked with Oracle, MSSQL and Firebird mostly. So the question is – if we want to restructure table structure to have foreign key constrains and implement relational integrity, what are common pitfalls on ElevateDB? I am not asking about general issues on relational databases, but I am interested in ElevateDB do’s and dont’s.
We are using Delphi 2009 as a client application.
Relational databases can only store data in tabular form which makes it difficult to represent complex relationships between objects. This is an issue because many applications require more than one table to store all the necessary data required by their application logic.
Four crucial properties define relational database transactions: atomicity, consistency, isolation, and durability—typically referred to as ACID.
Four basic update operations performed on relational database model are Insert, update, delete and select. Insert is used to insert data into the relation ▪Delete is used to delete tuples from the table. Modify allows you to change the values of some attributes in existing tuples.
The only thing that may trip you up with RI in ElevateDB is the lack of cascading updates or deletes. We leave those up to the user to handle with a transaction (you can also use triggers to do so). No matter what, ElevateDB will always still enforce the RI and prevent any improper data in terms of primary and foreign keys. Essentially, ElevateDB's RI only supports the RESTRICT option for the ON UPDATE and ON DELETE clauses.
If you have any other questions, feel free to ask them on our newsgroups at the URL mentioned above by Stuart.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With