Interesting - I couldn't quite figure out how "mem" mapped to any FilePath implementation. I didn't see any "mem" scheme or any logic mapping it to "memFS", but maybe I missed it.
Thanks for the answers! Best, Max On Thu, Oct 26, 2017 at 2:51 AM Noel Grandin <[email protected]> wrote: > On 25 October 2017 at 22:07, Max Englander <[email protected]> > wrote: > >> I finally got around to working on this, and ended up using the steps >> outline here >> <https://groups.google.com/forum/#!topic/h2-database/2EC0BxM9hsc>, which >> worked great for my purposes. >> >> Using "SET EXCLUSIVE 2" and "CHECKPOINT SYNC" turns out to be necessary; >> without, I run into sporadic issues, e.g. tables not being found, missing >> triggers, etc. >> >> There are still some things I don't quite understand, such as: >> >> 1. Why exactly the absence of "SET EXCLUSIVE" and "CHECKPOINT SYNC" >> occasionally results in failures? I think that I am being diligent about >> terminating existing operations to the primary database before copying. >> Perhaps there's no easy/obvious answer here. >> >> there is a background writer which has probably not finished flushing > it's state to the file system > >> >> 1. What exactly is the different between the "*FS" class of databases >> and the "mem" database? >> >> in-memory vs on-disk > >> >> 1. Is it possible to backup and restore to a "mem" database similar >> to "*FS" databases, e.g. with {input,output} streams? What part of the >> code >> base is responsible for "mem" databases? >> >> yes. It's in the same place as the other FilePath stuff. Although there > are a couple of places where we special-case in-memory stuff. > >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "H2 Database" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/h2-database/0J5ZHlxVptY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
