DB Design for dynamic data objects


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: DB Design for dynamic data objects

  1. #1
    Join Date
    Jan 2010
    Posts
    1

    Lightbulb DB Design for dynamic data objects

    Hi

    I have an interesting design issue.

    I want to create a database design were a custom type objects can be created, linked and retrieved.

    I am planning to design a framework which will provide user a capability to define his own object structure and store it. He should be able to retrieve the values based on the fields defined in his objects.

    I am planning to have XML to pass the information between client and the server, but I am struggling with coming up with an acceptable database design for this.

    I want to design DB considering storing capacity of upto 40,000 records and custom objects created upto 200.

    Any ideas or guldens will be highly appreciated.

    Thanks
    Last edited by roadwarrior; 01-22-2010 at 03:59 AM.

  2. #2
    Join Date
    Nov 2009
    Posts
    7
    If your database consists only of a collection of user-defined objects, then the only person who can access it is the user who created it, because the only framework is the implied one between values in fields which are equated to one another. If you are looking for a framework which connects collections of objects, possibly from different users and allows searches to be conducted then you are looking at a framework which sits outside the actual user-defined objects but which contains all of the relationships and various details of the object structure which allows queries to be formulated. This is called metadata ("data about data" in the trade.
    The basic table will be a list of objects containing only identification data and type data. It will also contain pointers to one or more records containing the actual object data. You will then need a one or more tables to describe the self-referential relationships between objects of given types. For any given object type, you will need one or more tables which tell you how to get into the object and look for matching data. The nature of the this data will depend upon the constitution of the object. For instance, table-based objects will simply have field names, but complex objects such as BLOBS (Binary large objects) or memos (free-form text with many thousands of characters) may need something different.
    In a post to another thread in this forum ("Handling Data For Different Customer Needs", I provided a schema for business purposes, where the user could define their own tables for things like ordering, staff management and so forth, but they were all connected by a module containing tables describing the real-world entities which were participants in the transactions and relationships. You might find it useful to extend your train of thought.
    The problem with any project like this is that any framework has to have some idea of what sort of objects are going to be defined, so that the user can enter the metadata which will allow his/her objects to interface with other objects.

  3. #3
    Join Date
    Nov 2009
    Posts
    7
    After posting my earlier thoughts on this topic, I began to wonder exactly what is meant by "dynamic data objects". If it simply means tabular data wherein the content changes frequently, then my post applies. However, it occurred to me that one could imagine an object which is changing constantly. For instance, a log of a supernova, or an artwork to which multiple artists are contributing. One would then need to extend the metadata model by inserting a status variable into the entity table and an event history of some sort to chart the changes.

Similar Threads

  1. Setting Data Objects at run time
    By JamesB in forum VB Classic
    Replies: 0
    Last Post: 06-27-2006, 10:09 AM
  2. Class vs structs design issues
    By rssmps in forum C++
    Replies: 4
    Last Post: 06-12-2006, 04:31 AM
  3. Replies: 1
    Last Post: 09-20-2002, 08:55 AM
  4. DB Design for hierarchial data
    By Hardy Cherry in forum VB Classic
    Replies: 9
    Last Post: 02-20-2001, 10:34 PM
  5. Design for time sensitive data
    By Ricardo in forum VB Classic
    Replies: 3
    Last Post: 01-30-2001, 10:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center