From 68f18e463cd336224fa942fa37f03db7d42a0355 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Thu, 9 Mar 2017 10:15:28 -0500 Subject: [PATCH] Use WITHOUT ROWID tables when useful Slight optimization for SQLite for the 'settings' and 'users' tables --- sql/SQLite3/0.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/SQLite3/0.sql b/sql/SQLite3/0.sql index c286bf0..aaf8e82 100644 --- a/sql/SQLite3/0.sql +++ b/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(