Re: [Leo] Strange Core Data vs. Spotlight issue
Re: [Leo] Strange Core Data vs. Spotlight issue
- Subject: Re: [Leo] Strange Core Data vs. Spotlight issue
- From: "Melissa J. Turner" <email@hidden>
- Date: Thu, 8 Nov 2007 13:46:28 -0800
On Nov 8, 2007, at 13:11, Adam Knight wrote:
On Nov 8, 2007, at 2:27 PM, Ben Trumbull wrote:
At 9:52 AM -0800 11/8/07, email@hidden wrote:
However the very strange thing is that I don't use Spotlight at
all. I use Core Data in a document-based application that's not
saving files when this is happening.
That's strange ... inconceivable. Core Data doesn't do anything
special with or for Spotlight.
That's what I was thinking, but the system performed otherwise.
Have you checked the console log ? I've found if an app logs
constantly (sometimes from throwing exceptions) that it can really
degrade the system performance.
Yeah, nothing there.
What other I/O operations is your app doing besides reading an
NSData ? Are you creating or deleting a lot of files ?
Absolutely nothing with the filesystem goes on when changing notes
other than a possible CD fault. Though, in theory, it should keep
that object in memory for a period of time but this issue appears
even when going to and fro between two notes that should already be
in memory. Indeed, it happened on an unsaved store as well (which
is even less possible...).
You could also try stepping along through gdb and seeing what area
of code appears to trigger spotlight. Without symbols,
frustrating, but you might be able to gleam something.
That does appear to be the next route. Well, that and a lot of time
in Instruments. However a co-worker of mine doesn't see this issue
at all, so it's getting more and more strange that my two computers
see it (one an upgrade install from Tiger and one a non-preserving
archive install from a previous Leo). I'll keep poking around, I
suppose. Very strange...
You might also want to try fsusage to check on what mds is opening
while it thrashes. See if it's your notes file or a different one that
seems to be causing the choking, or if it's something else and your
just noticing the problem while in your application. In either case,
you might want to track down spotlight importers and see if you've got
any overlap on the files they try to import.
+Melissa
_______________________________________________
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