Re: Recommendations for storing text messages in data files
Re: Recommendations for storing text messages in data files
- Subject: Re: Recommendations for storing text messages in data files
- From: Michael McCracken <email@hidden>
- Date: Mon, 2 Feb 2004 23:25:05 -0800
It sounds like a much simpler way to do what you want would just be to
save your messages as an NSDictionary and use the dictionary's
writeToFile:atomically: method to save it in a file...
I guess the decision would be if you'll ever need to do more with it,
or if you'll be storing really huge amounts of data. Either of those
might lead you to consider sqlite further.
Hope this helps,
-mike
On Feb 2, 2004, at 10:48 PM, Steve Palmer wrote:
>
I suppose my initial bias against sqlite was that all I need is to
>
store the original text split up into individual messages and some
>
means of quickly and randomly accessing any messages given a single
>
index key. I've no need to store any additional information so it is
>
basically just a two column table. However I've grabbed the sqlite
>
code, compiled it and added in the ObjC wrapper and I'll give it a try
>
and see how well it works.
>
Thanks!
>
>
>
>
On Jan 31, 2004, at 6:22 PM, Andreas Mayer wrote:
>
>
> Am 01.02.2004 um 03:07 schrieb Steve Palmer:
>
>
>
>> Somehow sqlite feels like the wrong solution for what I want.
>
>
>
> Why?
>
>
>
>> So does anybody have any recommendations for something that would
>
>> work for me?
>
>
>
> Store the actual data in a file and put the filename in a (sqlite)
>
> database.
>
>
>
> Personally I think that's unnecessary though. I'd just try sqlite and
>
> think about something more complex only if it turned out the simple
>
> solution wasn't fast enough.
>
>
>
>
>
> bye. Andreas.
>
> _______________________________________________
>
> cocoa-dev mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
> Do not post admin requests to the list. They will be ignored.
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.