Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 16 total
Thread The index page size is below the required of 8240 - Please help resolve
Sun, Aug 22 2021 5:10 PMPermanent Link

Andrew Hill

CREATE TABLE "CorrectText"
(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 0, INCREMENT BY 1),
"OrgStr" VARCHAR(1022) COLLATE "UNI_CI" DEFAULT '',
"NewStr" VARCHAR(1022) COLLATE "UNI_CI" DEFAULT '',
"CorrectionMode" INTEGER DEFAULT 0,
CONSTRAINT "ID_Key" PRIMARY KEY ("ID")
)
VERSION 2.00
READWRITE
ENCRYPTED
INDEX PAGE SIZE 8192
BLOB BLOCK SIZE 32768
PUBLISH BLOCK SIZE 1024
PUBLISH COMPRESSION 0
MAX ROW BUFFER SIZE 32768
MAX INDEX BUFFER SIZE 65536
MAX BLOB BUFFER SIZE 32768
MAX PUBLISH BUFFER SIZE 32768

Cannot Create Index

CREATE INDEX "CorrectText_OrgStr"
ON "CorrectText"
("OrgStr" COLLATE "UNI_CI" ASC)
Mon, Aug 23 2021 8:29 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Andrew,

Change the CREATE TABLE statement to this:

CREATE TABLE "CorrectText"
(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 0, INCREMENT BY 1),
"OrgStr" VARCHAR(1022) COLLATE "UNI_CI" DEFAULT '',
"NewStr" VARCHAR(1022) COLLATE "UNI_CI" DEFAULT '',
"CorrectionMode" INTEGER DEFAULT 0,
CONSTRAINT "ID_Key" PRIMARY KEY ("ID")
)
VERSION 2.00
READWRITE
ENCRYPTED
INDEX PAGE SIZE 12288  <<<<<<<<< 4096-byte higher value
BLOB BLOCK SIZE 32768
PUBLISH BLOCK SIZE 1024
PUBLISH COMPRESSION 0
MAX ROW BUFFER SIZE 32768
MAX INDEX BUFFER SIZE 65536
MAX BLOB BUFFER SIZE 32768
MAX PUBLISH BUFFER SIZE 32768

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Aug 23 2021 4:38 PMPermanent Link

Andrew Hill

Tim Young [Elevate Software] wrote:

Andrew,

Change the CREATE TABLE statement to this:

CREATE TABLE "CorrectText"
(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 0, INCREMENT BY 1),
"OrgStr" VARCHAR(1022) COLLATE "UNI_CI" DEFAULT '',
"NewStr" VARCHAR(1022) COLLATE "UNI_CI" DEFAULT '',
"CorrectionMode" INTEGER DEFAULT 0,
CONSTRAINT "ID_Key" PRIMARY KEY ("ID")
)
VERSION 2.00
READWRITE
ENCRYPTED
INDEX PAGE SIZE 12288  <<<<<<<<< 4096-byte higher value
BLOB BLOCK SIZE 32768
PUBLISH BLOCK SIZE 1024
PUBLISH COMPRESSION 0
MAX ROW BUFFER SIZE 32768
MAX INDEX BUFFER SIZE 65536
MAX BLOB BUFFER SIZE 32768
MAX PUBLISH BUFFER SIZE 32768

Tim Young
Elevate Software
www.elevatesoft.com

Can I ALTER TABLE TO CHANGE INDEX SIZE (it contains a lot of data) ?
Wed, Aug 25 2021 2:51 AMPermanent Link

Andrew Hill

Can I ALTER TABLE TO CHANGE INDEX SIZE (it contains a lot of data) ?
Wed, Aug 25 2021 7:47 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Andrew


Even if you have to DROP the various indices and recreate them it should not loose any data so just try it. Naturally, make a copy of the data first, just in case.

Roy Lambert
Wed, Aug 25 2021 4:16 PMPermanent Link

Andrew Hill

Thanks Roy,

I was waiting for Tim to explain why it only works with INDEX SIZE 8240 ? (still waiting)

CREATE TABLE "CorrectText"
(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 0, INCREMENT BY 1),
"OrgStr" VARCHAR(1022) COLLATE "UNI_CI" DEFAULT '',
"NewStr" VARCHAR(1022) COLLATE "UNI_CI" DEFAULT '',
"CorrectionMode" INTEGER DEFAULT 0,
CONSTRAINT "ID_Key" PRIMARY KEY ("ID")
)
VERSION 2.00
READWRITE
ENCRYPTED
INDEX PAGE SIZE 8240
BLOB BLOCK SIZE 32768
PUBLISH BLOCK SIZE 1024
PUBLISH COMPRESSION 0
MAX ROW BUFFER SIZE 32768
MAX INDEX BUFFER SIZE 65536
MAX BLOB BUFFER SIZE 32768
MAX PUBLISH BUFFER SIZE 32768
Wed, Aug 25 2021 4:27 PMPermanent Link

Andrew Hill

8240 if built by edbMgr

8256 if built by Delphi

Please explain
Wed, Aug 25 2021 8:48 PMPermanent Link

Raul

Team Elevate Team Elevate

On 8/25/2021 4:16 PM, Andrew Hill wrote:
>
> I was waiting for Tim to explain why it only works with INDEX SIZE 8240 ? (still waiting)
>

Not Tim but not sure what exactly you're asking !?

You have a table with the default index page size (8192)

You're trying to create indexes that cannot fit into table index page -
the error tells you that index page must be at least 8240.

Any larger value would also work - in fact Tim suggested to bump it by
full 4K (to 12288) which would also leave you some room in the future if
you decide to add more secondary indexes.

Raul
Wed, Aug 25 2021 10:12 PMPermanent Link

Andrew Hill

Raul, thanks for your answer HOWEVER this does not explain why edbMgr works with a less value and Delphi code requires a larger one ?
Thu, Aug 26 2021 4:09 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Raul


>You're trying to create indexes that cannot fit into table index page -
>the error tells you that index page must be at least 8240.

Whilst I get that "it" doesn't fit in I do not understand what "it" is. Can you explain? Just for interest rather than any need to know.

Roy
Page 1 of 2Next Page »
Jump to Page:  1 2
Image