• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to turn of the Journal logging of CoreData/Sqlite?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to turn of the Journal logging of CoreData/Sqlite?


  • Subject: Re: How to turn of the Journal logging of CoreData/Sqlite?
  • From: James Cicenia <email@hidden>
  • Date: Wed, 06 Apr 2016 10:45:46 -0500

This is only at the install. The WAL file grows to over 500MB. Then when the app is restarted this WAL file is truncated and app goes down to about 35MB.

I don’t know enough about sqlite and how it will handle the situation of when there is only 400MB left on the device.

Basically I am using RestKIT bridged into my SWIFT application. This is using RestKIT api pretty straight out of the box stuff.



> On Apr 6, 2016, at 10:27 AM, Jens Alfke <email@hidden> wrote:
>
>
>> On Apr 6, 2016, at 7:43 AM, James Cicenia <email@hidden <mailto:email@hidden>> wrote:
>>
>> What is the magic combination of options to send to the sqlite to completely turn off journaling.
>> I have an initialization on install that brings down a lot of data. I don’t need journaling at this point
>> and it balloons the memory storage upon install to over 500MB!
>
> Journaling doesn’t affect memory usage, except in the ‘memory’ mode or if the database is entirely in-memory, both of which seem unlikely for Core Data. I would imagine that Core Data uses the WAL mode since it’s significantly more efficient than the older journaling modes.
>
> If you’re seeing high memory utilization, it’s more likely something to do with Core Data itself. It might be a symptom of a way you’re misusing Core Data, but my knowledge of that API is very old and rusty so I don’t have any advice there.
>
> Have you tried using Instruments or the ‘heap’ tool to look at allocation patterns when this occurs? You should be able to tell the difference between SQLite allocations (which will be anonymous malloc blocks) and Core Data allocations (which will be Obj-C objects.)
>
> —Jens

_______________________________________________

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


  • Follow-Ups:
    • Re: How to turn of the Journal logging of CoreData/Sqlite?
      • From: Jens Alfke <email@hidden>
References: 
 >How to turn of the Journal logging of CoreData/Sqlite? (From: James Cicenia <email@hidden>)
 >Re: How to turn of the Journal logging of CoreData/Sqlite? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: How to turn of the Journal logging of CoreData/Sqlite?
  • Next by Date: Re: How to turn of the Journal logging of CoreData/Sqlite?
  • Previous by thread: Re: How to turn of the Journal logging of CoreData/Sqlite?
  • Next by thread: Re: How to turn of the Journal logging of CoreData/Sqlite?
  • Index(es):
    • Date
    • Thread