db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Magne Solem (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-646) In-memory backend storage support
Date Tue, 24 Mar 2009 21:35:52 GMT

    [ https://issues.apache.org/jira/browse/DERBY-646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688889#action_12688889
] 

Knut Magne Solem commented on DERBY-646:
----------------------------------------

Good to see something is happening in this field! Out of curiosity I tried this out on Windows
XP, but it failed in embedded mode when creating an in-memory database. 

The error was this assert:
ERROR XJ001: Java exception: 'ASSERT FAILED serviceName = memory:C:\Documents and Settings\user\workspace\derby\MyDbTest;storageFactory.getCanonicalName()
= C:\Documents and Settings\user\workspace\derby\MyDbTest: org.apache.derby.shared.common.sanity.AssertFailure'.

To make it work I altered line 310 in VFMemoryStorageFactory.normalizePath() to allow windows-style
paths. I changed it to this: "} else if (dir.charAt(0) != getSeparator() && !dir.toUpperCase().matches("[a-zA-Z]{1}:{1}\\\\{1}.*")){"

Appart from that i worked great.

To reduce memory footprint I guess you can reduce the cache to a minimum and maybe discard
flushed log records instead of writing them to memory?


Knut Magne,
 (previous user knutmas)

> In-memory backend storage support
> ---------------------------------
>
>                 Key: DERBY-646
>                 URL: https://issues.apache.org/jira/browse/DERBY-646
>             Project: Derby
>          Issue Type: New Feature
>          Components: Store
>    Affects Versions: 10.5.0.0
>         Environment: All
>            Reporter: Stephen Fitch
>            Assignee: Kristian Waagan
>         Attachments: derby-646-1a-raw-compiles.diff, derby-646-1a-raw-compiles.stat,
derby-646-20090222.diff, derby-646-20090222.stat, derby-646-2a-vfmem_first_rev.diff, derby-646-2a-vfmem_first_rev.stat,
derby-646-2b-vfmem_first_rev.diff, derby-646-3a-jmx_experiment.diff, derby-646-performance_comparison_1a.txt,
svn.diff
>
>
> To allow creation and modification of databases in-memory without requiring disk access
or space to store the database.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message