From 3b9688eb2faa7ced21ec9fcf87c4a3fcec14d0fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 5 May 2016 13:54:55 +0200 Subject: [PATCH] TODO.md --- TODO.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index b7cadc8b5..0eda74409 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,4 @@ - [ ] Reimplement ReadWriteBox with GCD (look for dispatch_barrier_sync in http://khanlou.com/2016/04/the-GCD-handbook/) -- [ ] In-memory DatabasePool (https://www.sqlite.org/inmemorydb.html) - [ ] Use "unchecked" instead of "unsafe" when appropriate - [ ] What is the SQLITE_OPEN_WAL open flag? - [ ] Read https://github.com/ccgus/fmdb/issues/262 and understand https://lists.apple.com/archives/cocoa-dev/2012/Aug/msg00527.html @@ -27,6 +26,11 @@ Not sure: - [ ] Have Record adopt Hashable and Equatable, based on primary key. Problem: we can't do it know because we don't know the primary key until we have a database connection. +Difficult: + +- [ ] In-memory DatabasePool (https://www.sqlite.org/inmemorydb.html). Unfortunately, a shared cache is not enough, and SQLite does not provide WAL mode for in-memory databases: we get "database is locked" errors. A solution could be a WAL database on a RAM disk, and this is difficult. + + Require changes in the Swift language: - [ ] Specific and optimized Optional.fetch... methods when http://openradar.appspot.com/22852669 is fixed.