SQLite In-memory to File

I have an application that works fine using VOs but the more
I think of it, I might entertain using an in-memory SQLite DB and
when the user saves, commit it to a file. If I create the DB
in-memory, is it relatively easy to change it to save to file at
the end if the user decides to save the DB?

John, please disregard my previous reply. AIR does indeed
support in-memory databases.
I think your best solution would be to base the database off
of a temporary file (such as File.createTempFile() or
File.applicationStorageDirectory.resolvePath(tempData.db)), and
then either (a) delete the file if you don't need to save it
(perhaps upon application shut-down), or (b) save the file as
needed.
You *could* recreate an in-memory database by recreating all
the tables, views, triggers, and indexes in a file-based database.
Which is perhaps a bit tedious, but possible.

Similar Messages

  • High Page Reads/Sec on Windows 2008 R2 64-bit running on VMware but very low Real Memory & Page file Usage.

    Hello All,
    Below is the server configuration,
    OS: Windows 2008 R2 Enterprise 64 Bit
    Version: 6.1.7601 Service Pack 1 Build 7601
    CPU: 4 (@ 2.93 GHz, 1 core)
    Memory: 12 GB
    Page file: 12 GB
    1. The actual utilization, be it a 15 minute sample, hourly, weekly etc, the utilization of real memory has never crossed 20% and the page file usage is at 0.1%. For some reason, the Pages/Sec>Limit% counter reports 100% continuously regardless of the
    sampling intervals. Upon further observation, the Page Reads/Sec value is somewhere between 150~450 and Page Input/Sec is somewhere between 800~8000. Does this indicate a performance bottleneck? (I've in the interim asked the Users, App. Owners to see if they
    notice any performance degradation and awaiting response). If this indicates a performance issue, please could someone help list down how to track this down further to which process/memory mapped file is causing it? and what I should go about performing to
    fix this problem please?
    p.s., initially the Security logs were full on this server and since page file is tied to Application, Security and System logs, this was freed up to see if this is causing the high page reads but this doesn't.
    2. If the above does not necessarily indicate a performance problem, please can someone reference few KB articles that confirms this? Also, in this case, will there be any adverse effects if attempting to fine tune a server which is already running fine?
    assuming App. Owners confirm there isn't any performance degradation.
    Thanks in advance.

    Hi,
    Based on the description, we can try to download Server Performance Advisor (SPA) to help further analyze the performance of the server. SPA can generate comprehensive diagnostic reports and charts and provides recommendations to help you quickly analyze
    issues and develop corrective actions.
    Regarding this tool, the following articles can be referred to for more information.
    Microsoft Server Performance Advisor
    https://msdn.microsoft.com/en-us/library/windows/hardware/dn481522.aspx
    Server Performance Advisor (SPA) 3.0
    http://blogs.technet.com/b/windowsserver/archive/2013/03/11/server-performance-advisor-spa-3-0.aspx
    Best regards,
    Frank Shen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Nio ByteBuffer and memory-mapped file size limitation

    I have a question/issue regarding ByteBuffer and memory-mapped file size limitations. I recently started using NIO FileChannels and ByteBuffers to store and process buffers of binary data. Until now, the maximum individual ByteBuffer/memory-mapped file size I have needed to process was around 80MB.
    However, I need to now begin processing larger buffers of binary data from a new source. Initial testing with buffer sizes above 100MB result in IOExceptions (java.lang.OutOfMemoryError: Map failed).
    I am using 32bit Windows XP; 2GB of memory (typically 1.3 to 1.5GB free); Java version 1.6.0_03; with -Xmx set to 1280m. Decreasing the Java heap max size down 768m does result in the ability to memory map larger buffers to files, but never bigger than roughly 500MB. However, the application that uses this code contains other components that require the -xMx option to be set to 1280.
    The following simple code segment executed by itself will produce the IOException for me when executed using -Xmx1280m. If I use -Xmx768m, I can increase the buffer size up to around 300MB, but never to a size that I would think I could map.
    try
    String mapFile = "C:/temp/" + UUID.randomUUID().toString() + ".tmp";
    FileChannel rwChan = new RandomAccessFile( mapFile, "rw").getChannel();
    ByteBuffer byteBuffer = rwChan.map( FileChannel.MapMode.READ_WRITE,
    0, 100000000 );
    rwChan.close();
    catch( Exception e )
    e.printStackTrace();
    I am hoping that someone can shed some light on the factors that affect the amount of data that may be memory mapped to/in a file at one time. I have investigated this for some time now and based on my understanding of how memory mapped files are supposed to work, I would think that I could map ByteBuffers to files larger than 500MB. I believe that address space plays a role, but I admittedly am no OS address space expert.
    Thanks in advance for any input.
    Regards- KJ

    See the workaround in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724038

  • Reading Large Memory.dmp files

    I'm got a 2003 servers and I got the error below. I've found how you can read the small memory.dmp files, but this file is 1.5GB. Can anyone tell me how I can read this? Or what this error is? The system unexpectedly shut down.
    The computer has rebooted from a bugcheck. The bugcheck was: 0x0000007e (0xc0000005, 0xb96de1d1, 0xb69e9240, 0xb69e8f3c). A dump was saved in: C:\WINDOWS\MEMORY.DMP.
    Thanks,
    Scott

    Hi,
    I would like to suggest you update the BIOS and the hardware drivers first.
    If it does not work, you may also analyze them with Debugging Tools by yourself. You can install it and it’s Symbol Packages from the following
    link:
    http://www.microsoft.com/whdc/Devtools/Debugging/default.mspx
    WinDbg will tell you the possible cause. For more information, please read Microsoft KB article below:
    How to read the small memory dump files that Windows creates for debugging
    http://support.microsoft.com/kb/315263
    If no clue can be found, you may contact Microsoft Customer Service and Support (CSS) via telephone so that a dedicated Support Professional can assist
    with your request. To troubleshoot this kind of kernel crash issue, we need to debug the crashed system dump. Unfortunately, debugging is beyond what we can do in the forum. Please be advised that contacting phone support will be a charged call.
    To obtain the phone numbers for specific technology request please take a look at the web site listed below:
    http://support.microsoft.com/default.aspx?scid=fh;EN-US;OfferProPhone#faq607
    Regards,
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to create OEMS JMS In-Memory and File-Based Persistence?

    Anyone knows how to create OEMS JMS In-Memory and File-Based Persistence? Any help it is appreciated. I m working with Oracle BAM 11g TP4 and I want to test the capability of connecting directly to a JMS queue, and reading Oracle´s "complex" documentation I couldnt find the right way to make this happen.
    tks

    Hi Mario
    This is explained in the soa developer's guide. Chapter 43 "Enterprise message source"should help you. You will find how to connect OEMS or JMS in-memory/file based to your BAM data objects with or without xpath transformation.
    You can find sample of advanced XML formating in the 10g tech note: "Oracle BAM 10.1.3 configuration for BPEL 10.1.2 using JMS sensors" (useful even if you don't plan to use BPEL).
    Anyway, if you plan to use BPEL, forget JMS and use the BAM adapter (chapter 42), it's quicker & easier.
    Dominique

  • How to create OEMS JMS In-Memory and File-Based Persistence ? Anyone?

    Anyone knows how to create OEMS JMS In-Memory and File-Based Persistence? Any help it is appreciated. I m working with Oracle BAM 11g TP4 and I want to test the capability of connecting directly to a JMS queue, and reading Oracle´s "complex" documentation I couldnt find the right way to make this happen.
    tks

    Hi Mario
    This is explained in the soa developer's guide. Chapter 43 "Enterprise message source"should help you. You will find how to connect OEMS or JMS in-memory/file based to your BAM data objects with or without xpath transformation.
    You can find sample of advanced XML formating in the 10g tech note: "Oracle BAM 10.1.3 configuration for BPEL 10.1.2 using JMS sensors" (useful even if you don't plan to use BPEL).
    Anyway, if you plan to use BPEL, forget JMS and use the BAM adapter (chapter 42), it's quicker & easier.
    Dominique

  • CFS and memory mapped file

    I would like to know if it is possible to memory map (mmap) a file that is residing on a cluster file system (CFS or GFS).
    If I remember correctly, memory mapping a file residing on NFS has issues.
    Thanks,
    Harsh

    I'm using SC 3.1u4 on Solaris 9. I ran in to a problem with memory mapped files on CFS.
    I've multiple processes (on one cluster node) sharing such a file that was created using the following command:
    mmap ((caddr_t)0,SOME_SIZE,(PROT_READ | PROT_WRITE), (MAP_SHARED | MAP_NORESERVE),fd,0);
    Issuing msync with MS_INVALIDATE as the third argument is ok. But when some other process tries to read the memory the node seems to hang.
    I can't examine the processes using pstack or truss as both of them get hung too. Only way out of this mess is to reboot the node.
    I can't imagine this problem hasn't been seen before. Is there a patch for it?

  • Error When Starting VM Failed to create memory contents file

    Hi,
    I"m experiencing issue with a VM that has previsoulsy been snapshotted. The snap shots have been since deleted via the Hyper V Manager. The snap shots were not applied to the VM. Also no .avhd files have been deleted via Windows Explorer
    When I start the VM I get the following error message.
    [Window Title]
    Hyper-V Manager
    [Main Instruction]
    An error occurred while attempting to change the state of virtual machine MyVirtualMachine.
    [Content]
    'MyVirtualMachine' failed to initialize.
    Failed to create memory contents file 'D:\Virtual Machines\MyVirtualMachine\MyVirtualMachine\MyVirtualMachine\Virtual Machines\25AB3A86-2950-457A-8D54-9B313E2D575E\25AB3A86-2950-457A-8D54-9B313E2D575E.bin' of size 4096 MB.
    [Expanded Information]
    'MyVirtualMachine' failed to initialize. (Virtual machine 25AB3A86-2950-457A-8D54-9B313E2D575E)
    'MyVirtualMachine' failed to create memory contents file 'D:\Virtual Machines\MyVirtualMachine\MyVirtualMachine\MyVirtualMachine\Virtual Machines\25AB3A86-2950-457A-8D54-9B313E2D575E\25AB3A86-2950-457A-8D54-9B313E2D575E.bin' of size 4096 MB. (Virtual machine
    25AB3A86-2950-457A-8D54-9B313E2D575E)
    [V] See details  [Close]
    Suggestions Welcomed,
    Thanks Adam

    Hi,
    Please check whether you receive these error logs: Event ID 3130, 3131, 3320 or 3321.
    Check the environment in which the start virtual machine operation was being attempted, including:
    access and permissions to the configuration file, memory file and all image files
    prior error messages in the event log
    available RAM on the system
    configuration settings
    disk space for the memory file and any expanding virtual hard disks
    Once the necessary issues have been rectified, try to start the virtual machine again.
    If the problem continues, restart the VMMS Service.
    To restart the VMMS service using the command prompt:
    1. On the computer that has the stopped service, open a command prompt as local administrator and type the following:
    net stop nvpswmi
    If the service is not running, you will see the error "The Hyper-V Networking Management service is not started."
    3. On the command prompt type the following command to start the nvpswmi service
    net start nvspwmi
    If the service start starts you will see the message "The Hyper-V Networking Management service was start successfully."
    To restart VMMS using PowerShell:
    1. On the computer that has the stopped service, open a command prompt as local administrator and type the following:
    C:\PS>restart-service vmms
    For more information please refer to following MS articles:
    Event ID 3130 — Virtual Machine Start Operation
    http://technet.microsoft.com/en-us/library/dd582385(v=ws.10).aspx
    Event ID 3131 — Virtual Machine Start Operation
    http://technet.microsoft.com/en-us/library/dd582367(v=ws.10).aspx
    Event ID 3320 — Virtual Machine Start Operation
    http://technet.microsoft.com/en-us/library/dd582317(v=ws.10).aspx
    Event ID 3321 — Virtual Machine Start Operation
    http://technet.microsoft.com/en-us/library/dd581892(v=ws.10).aspx
    Hope this helps!
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Lawrence
    TechNet Community Support

  • No memory dump files after BSOD

    Hi. I'm experiencing BSOD problem for quite a long time. I really don't know anymore what could be the cause of this problem and i desperately need help about it. I don't know much about this, but I've been told to upload memory dump file so that experts
    may determent what is the cause of my problem. But that is where another problem is. I'm not getting any new memory dump files after my PC crashes. It just stopped ''appearing''. I did everything on this site to enable mini dumps:
    http://www.carrona.org/setmini.html
    But I'm still not getting them... What should i do? Please help me.

    1. Start > type
    %systemroot% which should show the Windows folder, click on it. Once inside that folder, ensure there is a Minidump folder created. If not, CTRL-SHIFT-N to make a New Folder and name it Minidump.
    2. Windows key +
    Pause key. This should bring up System. Click Advanced System Settings on the left > Advanced > Performance > Settings > Advanced > Ensure there's a check-mark for 'Automatically manage paging file size for all drives'.
    3. Windows key +
    Pause key. This should bring up System. Click Advanced System Settings on the left > Advanced > Startup and Recovery > Settings > System Failure > ensure there is a check mark next to 'Write an event to the system log'. 
    Ensure Small Memory Dump is selected and ensure the path is %systemroot%\Minidump.
    4. Double check
    that the WERS is ENABLED:
    Start > Search > type services.msc > Under the name tab, find Windows Error Reporting Service > If the status of the service is not Started then right click it
    and select Start. Also ensure that under Startup Type it is set to Automatic rather than Manual. You can do this by right clicking it, selecting properties, and under General selecting startup type to 'Automatic', and then click Apply. 
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Memory dump file

    how do u fix the blue screen memory dump files i can only use the laptop on safe mode why what is causing this

    try to call toshiba tech support. its possible you need to send the laptop for a replacement memory chip.

  • Suse 10: Unable to release physical memory: Bad file descriptor

    When I'm trying to run jrockit it prints the message "Unable to release
    physical memory: Bad file descriptor":
    stef@linux:~> export JAVA_HOME=/home/stef/progs/jrockit-jdk1.5.0_03
    stef@linux:~> export PATH=/home/stef/progs/jrockit-jdk1.5.0_03/bin:$PATH
    stef@linux:~> java -version
    Unable to release physical memory: Bad file descriptor
    [~38 time the same message]
    Unable to release physical memory: Bad file descriptor
    java version "1.5.0_03"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
    BEA JRockit(R) (build dra-45238-20050523-2008-linux-ia32, R25.2.0-28)
    The vm does work and the speed seems to be okay but this messages pops
    up every time I try to run an application. (It's not specific to this
    user it also happens for root)
    What does it mean and what can I do about it?
    Yours,
    Stefan

    You can safely ignore the messages. It is a result of changes in the implementation of madvise in the 2.6.13 kernel (which, needless to say, isn't supported with JRockit). We'll change our usage in a future release so that these messages don't show up.
    Thanks for pointing it out,
    /Staffan

  • Windows 2008R2 SP1- No memory dump file is capturing when server is getting rebooted unexpectedly

    Hello,
    Windows 2008R2 SP1- No memory dump file is capturing when the server is getting rebooted unexpectedly. Tried allmost all options per the standards, no luck. Can someone help me to fix the issue.
    Thank You

    An unexpected reboot would not trigger a memory dump. This one may help if you're trying to generate a dump file.
    Windows feature lets you generate a memory dump file by using the keyboard
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Error code 1450 - memory mapped file

    Hello,
    in my application I am using memory mapped files. I have three of it, the maximum size of the biggest one is 5MB. I store 64 Waveforms from a DAQ card in it. 
    The application runs fine, but sometimes comes an error, when I try to access the MMF. The error code is 1450, "insufficient system resources"
    Is a size of 5MB too big? Should I rather create one MMF for each waveform?

    Hi mitulatbati,
    which development tools are you actually using?
    Which platform, libraries and so on...?
    Can you post example code?
    Marco Brauner NIG 

  • Not able to memory dump and create a memory.dmp file in the path: %SystemRoot%\Minidump

    This question is a part of my job profile. I work for an MNC chip maker. As a part of our systems testing environment, we boot into the Microsoft windows 8.1 windows OS and run some specific tests from the OS. The platform design (mother board) is an internal
    design.
    Issue is with the booting sequence since no much information is available when Windows 8.1 tries to boot and when we see the splash screen. Especially when we see a BSOD, there had been no leads.
    I tried to enable the small memory dump option in Windows 8.1 OS which tries to write the files into the location %SystemRoot%\Minidump on a system crash while boot. Please note that Windows 8.1 has been stored as a .VHD file in the hard disk (which
    is the boot-disk). The issue is, even in an event of a BSOD while booting, I am not able to see any memory dump files that had been logged in that location.
    Is this issue would have been caused by the VHD file format since it is a virtualized disk ? Please let me know what all the issues could be, so that I can have some memory logs here to look into. May be analyze the Windows debugger.
    Best Regards
    Akhil

    Hi,
    The causes why Windows does not save memory dump file after a crash are listed in the link below:
    http://support.microsoft.com/kb/130536
    I suggest you check the space, make sure that there's enough room for the memory dump file.
    And this blog can also be helpful
    No kernel memory dump created on Windows 7 or Windows 8
    http://blogs.technet.com/b/yongrhee/archive/2012/08/27/no-kernel-memory-dump-created-on-windows-7-or-windows-8.aspx
    Yolanda Zhu
    TechNet Community Support

  • Cannot create virtual memory swap file - when retrieve workbook

    We are running Discoverer 4i on Window NT Terminal Version. System will prompt this problem 'Cannot create virtual memory swap file' when user tries to retrieve a workbook. The workbook has complex queries.
    However, we have as much as 3GB available spaces.
    Please help, for those who know the solution.
    Thanks.

    I don't think terminal server is a supported version
    of windows for Discoverer.
    Christopher

Maybe you are looking for

  • HELP! After installing iTunes 7, all the songs on my iPod disappeared!

    I dont know if othe people are having this problem too but it really *****! I downloaded iTunes 7 a while back because i had no choice, i wouldnt be able to buy songs/music videos from it if i didnt. It installed a new iTunes then a new iPod upgrade.

  • Customer & Vendor

    I am trying to create a customer who is also a Vendor.The System is showing two error message. 1.Customer 300002 is not linked to vendor 204. 2.Clearing Indicator is not set in clearing account 300002 in Company Code HLL. Pls help me to resolve the i

  • How do I set custom frame size in Premiere Pro 5.5 sequence.

    I need to set a custom frame size in Premiere Pro 5.5. I can't edit a preset so how do I create my own?

  • How do you import a package into Forte?

    I'm attempting to use a Java package from http://www.braju.com that essentially implements the standard C functions printf / sprintf, as part of an exercise to convert a C program to Java. I can go into a (gasp!) Windows ME DOS window, set my Classpa

  • Only "all day events" are subscribed to

    When I try to subscribe to my iCloud calendar using the Outlook.com calendar from the web (NOT the Outlook calendar as such in Office 2013) -- desktop runs Win 7 Pro and Office 365, 64 bit, but the issue seems to be cloud related since it appears any