Skip navigation.
 
mlRe: [Leo] Strange Core Data vs. Spotlight issue
FROM : Adam Knight
DATE : Thu Nov 08 23:31:45 2007

On Nov 8, 2007, at 3:46 PM, Melissa J. Turner wrote:

> 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
>


I followed something similar to that and ran the DTrace script 
filebyproc.d and discovered that every time I switch notes I'm hitting 
a fault and/or loading a NIB file to get the viewer (text, web, or 
PDF) and that every time I'm doing those things Spotlight is opening 
up the following files about forty times each:

  1  17600                      open:entry mds .
  1  17600                      open:entry mds .
  1  17600                      open:entry mds 0.indexGroups
  1  17600                      open:entry mds 0.indexIds
  1  17600                      open:entry mds 0.indexHead
  1  17600                      open:entry mds 0.indexPostings
  1  17600                      open:entry mds 0.indexPositions
  1  17600                      open:entry mds 0.indexDirectory
  1  17600                      open:entry mds 0.indexCompactDirectory
  1  17600                      open:entry mds 0.indexArrays
[repeats 45 times]

So it's not Core Data after all.  However, for some reason, accessing 
those files causes mds to go haywire.  Well, at least I have a head 
start on the issue and can try to see what's causing that.  This is 
really strange.  I suppose it's updating the access time or something, 
but even erasing the Spotlight database (by hand, from the install CD) 
didn't resolve this.  Oh well, I'll go file a bug...

Thanks for the lead!


Adam Knight
Notae: Organize your notes, organize your life - http://www.codepoetry.net/products/notae/

Related mailsAuthorDate
ml[Leo] Strange Core Data vs. Spotlight issue Adam Knight Nov 8, 18:27
mlre: [Leo] Strange Core Data vs. Spotlight issue Ben Trumbull Nov 8, 21:27
mlRe: [Leo] Strange Core Data vs. Spotlight issue Adam Knight Nov 8, 22:11
mlRe: [Leo] Strange Core Data vs. Spotlight issue Melissa J. Turner Nov 8, 22:46
mlRe: [Leo] Strange Core Data vs. Spotlight issue Adam Knight Nov 8, 23:31