Pete (BSC)
Well-known member
- Joined
- Oct 19, 2007
- Messages
- 89
- Programming Experience
- 10+
I am trying to put together an argument for creating a one-to-one table relationship.
Currently we have a meta data table that we store a status. The status along with other fields belonging to the status (time stamp, user) are the most often updated columns after the record has been created.
What I think we need to remove the status fields from the meta data table and create a status table.
We wrote an object that handles updating of the status so that all the business rules for updating the status are in one place.
Currently, a user can have a record displayed and then change the status and to prevent a concurrency exception we refresh the dataset after the record has been updated by the status object (due to our status object doing the update to the record). This goes away b/c we no longer would need to refresh the dataset when the status changed b/c it is stored in a different table.
The hardest thing to overcome is, searching for items with a certain status is very easy b/c its in one table. If we split it... we either need to create a VIEW or sql with a JOIN.
Any thoughts, comments are appreciated.
Thanks,
Pete
Currently we have a meta data table that we store a status. The status along with other fields belonging to the status (time stamp, user) are the most often updated columns after the record has been created.
What I think we need to remove the status fields from the meta data table and create a status table.
We wrote an object that handles updating of the status so that all the business rules for updating the status are in one place.
Currently, a user can have a record displayed and then change the status and to prevent a concurrency exception we refresh the dataset after the record has been updated by the status object (due to our status object doing the update to the record). This goes away b/c we no longer would need to refresh the dataset when the status changed b/c it is stored in a different table.
The hardest thing to overcome is, searching for items with a certain status is very easy b/c its in one table. If we split it... we either need to create a VIEW or sql with a JOIN.
Any thoughts, comments are appreciated.
Thanks,
Pete