Click here to Skip to main content
16,008,010 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
Tristan Rhodes28-Nov-07 1:14
Tristan Rhodes28-Nov-07 1:14 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
led mike28-Nov-07 6:22
led mike28-Nov-07 6:22 
QuestionScaling out transaction processing Pin
Anubis33316-Nov-07 7:50
Anubis33316-Nov-07 7:50 
AnswerRe: Scaling out transaction processing Pin
led mike19-Nov-07 4:50
led mike19-Nov-07 4:50 
GeneralRe: Scaling out transaction processing Pin
Anubis33327-Nov-07 10:29
Anubis33327-Nov-07 10:29 
GeneralRe: Scaling out transaction processing Pin
led mike27-Nov-07 11:17
led mike27-Nov-07 11:17 
GeneralRe: Scaling out transaction processing Pin
Anubis33328-Nov-07 4:09
Anubis33328-Nov-07 4:09 
QuestionArchitecture for implementing locking Pin
Simon P Stevens15-Nov-07 2:00
Simon P Stevens15-Nov-07 2:00 
Hi,

I have a database used for storing information about our machines. I have tables for machine configuration, utilisation history, schedules etc.

I'm currently working on a tool an extension to the database where supervisors will be able to open and view the schedule for a specfic machine, make changes, and save it.

The problem is that obviously I don't want two different users to be able to open a schedule at the same time(or both could save and overwrite each others changes), so I need to somehow lock the schedules.

What i've thought of doing is including a Lock table, that contains uniqueId's of locked schedules, so before opening a schedule, the lock table is checked and if the schedule is locked, the open is cancelled. Or if the schedule is free, a lock row is inserted and the user is allowed to open the schedule. Problem is, what happens if a user's PC loses power while they have a schedule open. That would mean that the schdeule would remain locked forever. So next i considered adding an ExpiryTime to a lock. So if a user crashed out, the lock would expire after a few minutes. But that means that the app will have to constantly refresh the lock to stop it expiring while the use has the schedule open. I'm not too keen on this idea either. What if the users pc just slowed up and they couldn't refresh the lock in time. I'd then have to handle kicking them out and they'd lose any changes.

The other problem is that we also have some wireless laptops, so sometimes, connections to the database are intermittant. How can I implement this so if the connection is lost for a minute or two, the users work isn't?

Is there any standard pattern for implementing this kind of thing? It must be a common requirement. Can anyone suggest any ideas or point me in the right direction. Has anyone implemented this kind of system before and can suggest a proven technique?

Alternativly, is there functionality within SQL server to implement this kind of thing. I'm not just talking about row locking as a schedule will consist of many jobs, each consisting of many products and the quantities required of each product, so a "schedule" will span multiple tables.

Thanks

Simon

AnswerRe: Architecture for implementing locking Pin
cmf-DBA15-Nov-07 11:19
cmf-DBA15-Nov-07 11:19 
GeneralRe: Architecture for implementing locking Pin
Simon P Stevens16-Nov-07 3:28
Simon P Stevens16-Nov-07 3:28 
GeneralRe: Architecture for implementing locking Pin
cmf-DBA16-Nov-07 9:24
cmf-DBA16-Nov-07 9:24 
GeneralRe: Architecture for implementing locking Pin
Simon P Stevens19-Nov-07 10:21
Simon P Stevens19-Nov-07 10:21 
GeneralRe: Architecture for implementing locking Pin
cmf-DBA20-Nov-07 3:17
cmf-DBA20-Nov-07 3:17 
QuestionWrapping Composite Controls Pin
Tristan Rhodes14-Nov-07 3:12
Tristan Rhodes14-Nov-07 3:12 
AnswerRe: Wrapping Composite Controls Pin
led mike15-Nov-07 4:45
led mike15-Nov-07 4:45 
GeneralRe: Wrapping Composite Controls Pin
Tristan Rhodes15-Nov-07 22:44
Tristan Rhodes15-Nov-07 22:44 
GeneralRe: Wrapping Composite Controls Pin
led mike19-Nov-07 12:00
led mike19-Nov-07 12:00 
GeneralRe: Wrapping Composite Controls Pin
Tristan Rhodes22-Nov-07 4:59
Tristan Rhodes22-Nov-07 4:59 
Question3D architecture Pin
rsaint2713-Nov-07 7:56
rsaint2713-Nov-07 7:56 
AnswerRe: 3D architecture Pin
Tristan Rhodes14-Nov-07 3:26
Tristan Rhodes14-Nov-07 3:26 
QuestionCalling UDDI services from DNA platform Pin
GuimaSun12-Nov-07 8:43
GuimaSun12-Nov-07 8:43 
Questioninstruction executed per second by a microprocessor Pin
akhshay gandhi12-Nov-07 7:11
akhshay gandhi12-Nov-07 7:11 
AnswerRe: instruction executed per second by a microprocessor Pin
Luc Pattyn12-Nov-07 7:40
sitebuilderLuc Pattyn12-Nov-07 7:40 
QuestionGood UML tool Pin
Oshtri Deka12-Nov-07 0:33
professionalOshtri Deka12-Nov-07 0:33 
AnswerRe: Good UML tool Pin
Tristan Rhodes14-Nov-07 3:21
Tristan Rhodes14-Nov-07 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.