• 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: MDItemCreate very, very, very, slow -- and fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MDItemCreate very, very, very, slow -- and fails


  • Subject: Re: MDItemCreate very, very, very, slow -- and fails
  • From: Vince DeMarco <email@hidden>
  • Date: Wed, 15 Feb 2006 09:12:16 -0800


On Feb 15, 2006, at 9:06 AM, Hamish Allan wrote:


On 15 Feb 2006, at 16:54, Matt Neuburg wrote:

Okay, that's helpful. But then why doesn't the server ever "fall over" when
Apple's own Spotlight front ends are talking to it? m.

Good question. Perhaps they have an SPI which can detect server failure and respawn?


Best wishes,
Hamish



The Apple front ends don't call MDItemCreate(), all of them do a Kaelin suggested.


If you create a query for the items you want, ask the query to sort the attributes, then instead of asking the server for the items via MDItemCopyAttribute()..
you ask the query for the value of a sort attribute.


This way you are doing a bulk fetch, instead of going back to the server over and over again.

The Spotlight menu doesn't use any SPI to detect server failure, etc.. and neither does the finder.

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

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: MDItemCreate very, very, very, slow -- and fails
      • From: Hamish Allan <email@hidden>
    • Re: MDItemCreate very, very, very, slow -- and fails
      • From: Matt Neuburg <email@hidden>
References: 
 >Re: MDItemCreate very, very, very, slow -- and fails (From: Matt Neuburg <email@hidden>)
 >Re: MDItemCreate very, very, very, slow -- and fails (From: Hamish Allan <email@hidden>)

  • Prev by Date: Re: MDItemCreate very, very, very, slow -- and fails
  • Next by Date: "Path arithmetic" support in Quartz
  • Previous by thread: Re: MDItemCreate very, very, very, slow -- and fails
  • Next by thread: Re: MDItemCreate very, very, very, slow -- and fails
  • Index(es):
    • Date
    • Thread