Re: [Core Data] Improve save performance ?
Re: [Core Data] Improve save performance ?
- Subject: Re: [Core Data] Improve save performance ?
- From: Guy English <email@hidden>
- Date: Mon, 16 Jan 2006 18:18:09 -0500
> - SQLite : around 0.450 second
> - XML : around 0.005 second !!!
> Maybe there is something I'm doing wrong when creating my SQLite
> persistent store. I thought a SQLite store was faster than XML store.
I haven't timed this kind of stuff myself it's always been fast enough
that I haven't bothered.
> Ideas ?
Scale. If you're only dealing with one object may be easier to dump
out an XML plist for it. The SQLite store may have some initial setup
to be done. SQLite will scale much better though so if you're dealing
with thousands of objects it'll trounce the XML.
I suggest you write a loop around your code so you create and save an
object many times and measure the result of that. I suspect the SQLite
will speed up after the first save.
Oh - and I assume the stores are on the same disk and you're not
saving the SQLite on your iDisk or something.
Guy
_______________________________________________
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