Re: MDItemCreate very, very, very, slow -- and fails
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