in

The ORM Foundation

Get the facts!

Index Constraint

Last post 12-07-2009 18:33 by rfarago. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-03-2009 17:28

    Index Constraint

    I can't figure out (if it's even still possible) to add an index constraint to a role.  Is this an option as it was in VisioModeler?  Thanks!

  • 12-05-2009 5:57 In reply to

    Re: Index Constraint

    Yes, VisioModeler 3.1 has a feature that allows you to create an index on roles at the ORM conceptual level.
    This index feature is not implemented in NORMA.

    Having said that, an index is a performance related feature in a physical database and thus, structly speaking, an index is not relevant at the conceptual level. 
    In my experience, the ORM conceptual level is best used for defining semantics with domain experts and the notion of an index tends to confuse them.
    On the other hand, the physical level is best used for optimising the performance of an implementation. Since database engines are not the same, an index that works well in one RDBMS many not behave as well in a different RDBMS.

    Indexing is discussed on pages 659-660 and 753-758  of the The Big Brown Book. Here is a quite from page 659:

    "If supported, (in a tool) the unique index option provides one way of enforcing uniqueness constraints. However, most uniqueness constraints are better declared using primary key or unique declarations..."

    Ken

    Filed under:
  • 12-07-2009 18:33 In reply to

    Re: Index Constraint

    Thanks for the response and your explanation.  I agree completely.  I was curious about the option for some ORM reference documentation that I'm putting together.  This just means I'll eliminate the index constraint from the document.

Page 1 of 1 (3 items)
© 2008-2010 The ORM Foundation: A UK not-for-profit organisation -------------- Terms of Service