• 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: Hamish Allan <email@hidden>
  • Date: Wed, 15 Feb 2006 17:32:17 +0000


On 15 Feb 2006, at 17:12, Vince DeMarco wrote:

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.

I think the issue tends to crop up when people want to get hold of lots of values of an attribute that can't be bulk fetched -- namely kMDItemPath.


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

It never fetches paths in bulk, so I guess it never needs to.

I think what would be really useful would be a kMDVolumeID, so we can uniquely identify MDItems using that and kMDItemID rather than needing to use kMDItemPath which (so far) is the only unique identifier.

We've been over this before (http://www.cocoabuilder.com/archive/ message/cocoa/2005/8/10/144025) but it never progressed past my answer to Chris's objection. I was sort of waiting on more from that before I filed an enhancement request... any barriers remaining?

Best wishes,
Hamish


_______________________________________________ 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
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>)
 >Re: MDItemCreate very, very, very, slow -- and fails (From: Vince DeMarco <email@hidden>)

  • Prev by Date: Re: MDItemCreate very, very, very, slow -- and fails
  • Next by Date: Re: MDItemCreate very, very, very, slow -- and fails
  • Previous by thread: Re: MDItemCreate very, very, very, slow -- and fails
  • Next by thread: NSAttributedString
  • Index(es):
    • Date
    • Thread