1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-03 14:32:40 +00:00

Use WITHOUT ROWID tables when useful

Slight optimization for SQLite for the 'settings' and 'users' tables
This commit is contained in:
J. King 2017-03-09 10:15:28 -05:00
parent f0adf08b1e
commit 68f18e463c

View file

@ -5,7 +5,7 @@ create table newssync_settings(
type varchar(255) not null check(
type in('int','numeric','text','timestamp','date','time','bool','null','json')
) default 'text' -- the deserialized type of the value
);
) without rowid;
-- users
create table newssync_users(
@ -16,7 +16,7 @@ create table newssync_users(
avatar_type TEXT, -- internal avatar image's MIME content type
avatar_data BLOB, -- internal avatar image's binary data
rights integer not null default 0 -- any administrative rights the user may have
);
) without rowid;
-- newsfeeds, deduplicated
create table newssync_feeds(