• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data Multiuser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Multiuser


  • Subject: Re: Core Data Multiuser
  • From: Flavio Donadio <email@hidden>
  • Date: Tue, 09 Oct 2012 00:54:11 -0300

On 08/10/2012, at 17:56, Alex Zavatone wrote:

> Thank you Flavio.  Out of curiosity, did you encounter pessimistic vs. optimistic locking performance/data reliability issue in having many clients writing to potentially the same places at once?  If so, how did each of the candidate solutions answer the problem that this poses?
>
> The problem being "if there are multiple users potentially writing to the same place at once, locking records during each write is too slow, but if you don't do this, you end up with the potential of two (or more) people writing to a record at once".
>
> An example of this in real life is if both of us try to book a ticket for the last seat on a plane at the same time.

I don't think I'll have performance problems. I'll never have more than, say, 20 users at any given time and these "race conditions" will be rare. The database server can handle this easily, *in my case*. The real problem is in the user interface.

The interface will be like in Address Book: the user opens a card/record for viewing, but has to click an "Edit" button to make changes. If the record is locked, the user will get an alert when he/she clicks the button. I need:

1. A mechanism to avoid users opening records for editing and leaving them open "forever" (timer?);

2. Some kind of feedback for the users when a record is unlocked, without having to refresh manually.

Ideas are very welcome.


Cheers,
Flavio
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Core Data Multiuser
      • From: Keary Suska <email@hidden>
    • Re: Core Data Multiuser
      • From: Stefan Nobis <email@hidden>
    • Re: Core Data Multiuser
      • From: "email@hidden" <email@hidden>
References: 
 >Re: Core Data Multiuser (From: Flavio Donadio <email@hidden>)
 >Re: Core Data Multiuser (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Size limit on .icns files containing 1024x1024 version in 10.5?
  • Next by Date: Re: Embedding resources in Static Cocoa Library
  • Previous by thread: Re: Core Data Multiuser
  • Next by thread: Re: Core Data Multiuser
  • Index(es):
    • Date
    • Thread