Added indices on bankId and accountId (not senseful in all cases (currently) )
This commit is contained in:
parent
e883713eba
commit
34f2fca126
|
@ -53,6 +53,12 @@ CREATE TABLE IF NOT EXISTS AccountTransaction (
|
||||||
isReversal INTEGER AS Boolean NOT NULL
|
isReversal INTEGER AS Boolean NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX idx_AccountTransaction_bankId
|
||||||
|
ON AccountTransaction (bankId);
|
||||||
|
|
||||||
|
CREATE INDEX idx_AccountTransaction_accountId
|
||||||
|
ON AccountTransaction (accountId);
|
||||||
|
|
||||||
|
|
||||||
insertTransaction:
|
insertTransaction:
|
||||||
INSERT INTO AccountTransaction(
|
INSERT INTO AccountTransaction(
|
||||||
|
@ -163,6 +169,12 @@ CREATE TABLE IF NOT EXISTS Holding (
|
||||||
buyingDate TEXT
|
buyingDate TEXT
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX idx_Holding_bankId
|
||||||
|
ON Holding (bankId);
|
||||||
|
|
||||||
|
CREATE INDEX idx_Holding_accountId
|
||||||
|
ON Holding (accountId);
|
||||||
|
|
||||||
|
|
||||||
insertHolding:
|
insertHolding:
|
||||||
INSERT INTO Holding(
|
INSERT INTO Holding(
|
||||||
|
|
|
@ -111,6 +111,9 @@ CREATE TABLE IF NOT EXISTS BankAccount (
|
||||||
includeInAutomaticAccountsUpdate INTEGER AS Boolean NOT NULL
|
includeInAutomaticAccountsUpdate INTEGER AS Boolean NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX idx_BankAccount_bankId
|
||||||
|
ON BankAccount (bankId);
|
||||||
|
|
||||||
|
|
||||||
insertBankAccount:
|
insertBankAccount:
|
||||||
INSERT INTO BankAccount(
|
INSERT INTO BankAccount(
|
||||||
|
@ -165,6 +168,9 @@ CREATE TABLE IF NOT EXISTS TanMethod (
|
||||||
allowedTanFormat TEXT NOT NULL
|
allowedTanFormat TEXT NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX idx_TanMethod_bankId
|
||||||
|
ON TanMethod (bankId);
|
||||||
|
|
||||||
|
|
||||||
insertTanMethod:
|
insertTanMethod:
|
||||||
INSERT INTO TanMethod(
|
INSERT INTO TanMethod(
|
||||||
|
@ -214,6 +220,9 @@ CREATE TABLE IF NOT EXISTS TanMedium (
|
||||||
validTo TEXT
|
validTo TEXT
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX idx_TanMedium_bankId
|
||||||
|
ON TanMedium (bankId);
|
||||||
|
|
||||||
|
|
||||||
insertTanMedium:
|
insertTanMedium:
|
||||||
INSERT INTO TanMedium(
|
INSERT INTO TanMedium(
|
||||||
|
|
Loading…
Reference in New Issue