Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Add indexes to creational tables (#6974)

Cette révision appartient à :
Andreas 2022-04-22 14:03:07 +02:00 révisé par GitHub
Parent 032aa64195
révision b4981058a2
Aucune clé n'a été trouvée pour cette signature dans la base de données
ID de la clé GPG: 4AEE18F83AFDEB23
3 fichiers modifiés avec 8 ajouts et 0 suppressions

Voir le fichier

@ -15,6 +15,9 @@ CREATE TABLE chapters(
ON DELETE CASCADE
);
CREATE INDEX chapters_manga_id_index ON chapters(manga_id);
CREATE INDEX chapters_unread_by_manga_index ON chapters(manga_id, read) WHERE read = 0;
getChapterById:
SELECT *
FROM chapters

Voir le fichier

@ -9,6 +9,8 @@ CREATE TABLE history(
ON DELETE CASCADE
);
CREATE INDEX history_history_chapter_id_index ON history(history_chapter_id);
resetHistoryById:
UPDATE history
SET history_last_read = 0

Voir le fichier

@ -22,6 +22,9 @@ CREATE TABLE mangas(
date_added INTEGER AS Long NOT NULL
);
CREATE INDEX library_favorite_index ON mangas(favorite) WHERE favorite = 1;
CREATE INDEX mangas_url_index ON mangas(url);
getMangaById:
SELECT *
FROM mangas