• 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: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)


  • Subject: Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
  • From: Rich <email@hidden>
  • Date: Thu, 15 Mar 2012 16:20:42 +1300

Hi Paul / Ray,

I'm not doing any real display of the data,
The WO site is purely a provider for a basic (Prototype) web-service and just returns the entity objects in JSON. What I want to do is a descending sort on the PK so only the latest batch of objects get returned.

I know I could have a 'creation' stamp or something like that, but the 'id' get returned as part of the JSON representation and is used to marry up with CoreData on the iOS platforms. I'm using RESTKit and this is the recommended approach.
Since the web-service is responsible for creating the Entity object initially, I want to return the last '25' or so entities in a batch and the simplest way (considering this is only a prototype), is to return the batch of highest 'id's.

Rich

On 15/03/2012, at 3:57 PM, Paul Yu wrote:

Why are you sorting on id column?  My patterns is to use a displaySequence column.

-- 
Paul Yu
Sent with Sparrow

On Wednesday, March 14, 2012 at 10:33 PM, Rich wrote:



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >ERXRestFetchSpecification defaultSortOrderings ordered by id (PK) (From: Rich <email@hidden>)
 >Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK) (From: Paul Yu <email@hidden>)

  • Prev by Date: Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
  • Next by Date: Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
  • Previous by thread: Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
  • Next by thread: Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
  • Index(es):
    • Date
    • Thread