Browse Source

Use WITHOUT ROWID tables when useful

Slight optimization for SQLite for the 'settings' and 'users' tables
microsub
J. King 7 years ago
parent
commit
68f18e463c
  1. 4
      sql/SQLite3/0.sql

4
sql/SQLite3/0.sql

@ -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(

Loading…
Cancel
Save