This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am developing a application that uses HSQLDB. I have created cached tables in HSQLDB. I read that cached tables give low performance and text tables give better performance so i switched to text tables. The first time I ran my application it ran very fast. But since then it is running even slower than when i had cached tables. What could be the reason for that?
CREATE SCHEMA PUBLIC AUTHORIZATION DBA CREATE TEXT TABLE INDICES(ID BIGINT NOT NULL PRIMARY KEY,FS INTEGER NOT NULL,MP INTEGER NOT NULL,PARENT BIGINT NOT NULL,ISDIR BOOLEAN NOT NULL,NAME VARCHAR(256),EXT VARCHAR(50),PARENTPATH VARCHAR(4096),MODTIME TIMESTAMP NOT NULL,BYTES BIGINT NOT NULL,STAMPUPD TIMESTAMP DEFAULT NOW NOT NULL,ISDELETED BOOLEAN NOT NULL) CREATE INDEX U_INDICES_FS_MP_SELF ON INDICES(ID,MP,ISDELETED) CREATE INDEX INDICES_COUNT ON INDICES(ISDIR,ISDELETED) CREATE INDEX INDICES_FS_MP_PARENT ON INDICES(MP,PARENT,ISDELETED) CREATE INDEX INDICES_NAME_PARENTPATH ON INDICES(NAME,PARENTPATH) CREATE INDEX INDICES__PARENT ON INDICES(PARENT,ISDELETED) CREATE INDEX INDICES_MP_ISDIR_EXT ON INDICES(MP,ISDIR,EXT,ISDELETED) SET TABLE INDICES SOURCE "indices.csv" CREATE TEXT TABLE INVERTEDINDEX(FILEID BIGINT NOT NULL,FOLDERID BIGINT NOT NULL) CREATE INDEX INVERTEDINDEX_FOLDERID_ISDELETED ON INVERTEDINDEX(FOLDERID) SET TABLE INVERTEDINDEX SOURCE "invertedindex.csv" CREATE TEXT TABLE DB_VERSION(DBVERSION NUMERIC,REFRESHCOUNT NUMERIC,UPDATEDATE NUMERIC) SET TABLE DB_VERSION SOURCE "db_version.csv" CREATE USER SA PASSWORD "" GRANT DBA TO SA SET WRITE_DELAY 10