Subject | Re: [Firebird-Java] Setting database page size |
---|---|
Author | Alec Swan |
Post date | 2009-08-18T15:52:14Z |
I know I can specify page size in "create database" statement, but I don't
understand where in the code to issue this statement when running in
embedded mode.
understand where in the code to issue this statement when running in
embedded mode.
On Tue, Aug 18, 2009 at 9:41 AM, Mark Rotteveel <Avalanche1979@...>wrote:
>
>
> As far as I can see in the documentation, I don't think you can set the
> pagesize with FBManager. You probably can do something yourself by
> duplicating the code used in
> org.firebirdsql.management.FBManager.createDatabase and add a
> DatabaseParameterBuffer.PAGE_SIZE to the parameterbuffer (although I am
> not 100% sure that will work).
>
> Mark
>
>
> Alec Swan wrote:
> > How can I configure the database page size when creating a new database
> > using FBManager?
> >
> > Here is my current code:
> >
> > // start embedded Firebird server
> > FBManager manager = new FBManager("EMBEDDED");
> > manager.start();
> > manager.setForceCreate(true);
> > manager.createDatabase(databaseDbFile.getAbsolutePath(), "", "");
>
> --
> Mark Rotteveel
>
>
[Non-text portions of this message have been removed]