From 9993ecc196d1598b3dfbd04e94e4dfc80415fe92 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 24 Sep 2018 16:35:43 +0300 Subject: [PATCH] Update notes for 2018-09-24 --- content/posts/2018-09.md | 1 + docs/2018-09/index.html | 7 ++++--- docs/sitemap.xml | 10 +++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/content/posts/2018-09.md b/content/posts/2018-09.md index b13f8ff68..208128280 100644 --- a/content/posts/2018-09.md +++ b/content/posts/2018-09.md @@ -433,5 +433,6 @@ sqlite> INSERT INTO items(id, views) VALUES(0, 7) ON CONFLICT(id) DO UPDATE SET - Oh nice, I finally finished the Falcon API route to page through all the results using SQLite's amazing `LIMIT` and `OFFSET` support - But when I deployed it on my Ubuntu 16.04 environment I realized Ubuntu's SQLite is old and doesn't support `UPSERT`, so my indexing doesn't work... - Apparently `UPSERT` came in SQLite 3.24.0 (2018-06-04), and Ubuntu 16.04 has 3.11.0 +- Ok this is hilarious, I manually downloaded the [libsqlite3 3.24.0 deb from Ubuntu 18.10 "cosmic"](https://packages.ubuntu.com/cosmic/libsqlite3-0) and installed it in Ubnutu 16.04 and now the Python `indexer.py` works diff --git a/docs/2018-09/index.html b/docs/2018-09/index.html index c3e68e7be..a70c7c6ac 100644 --- a/docs/2018-09/index.html +++ b/docs/2018-09/index.html @@ -18,7 +18,7 @@ I’m testing the new DSpace 5.8 branch in my Ubuntu 18.04 environment and I " /> - + Oh nice, I finally finished the Falcon API route to page through all the results using SQLite’s amazing LIMIT and OFFSET support
  • But when I deployed it on my Ubuntu 16.04 environment I realized Ubuntu’s SQLite is old and doesn’t support UPSERT, so my indexing doesn’t work…
  • Apparently UPSERT came in SQLite 3.24.0 (2018-06-04), and Ubuntu 16.04 has 3.11.0
  • +
  • Ok this is hilarious, I manually downloaded the libsqlite3 3.24.0 deb from Ubuntu 18.10 “cosmic” and installed it in Ubnutu 16.04 and now the Python indexer.py works
  • diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 8ca2cb7e3..97319b235 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-09/ - 2018-09-24T13:40:59+03:00 + 2018-09-24T16:24:35+03:00 @@ -184,7 +184,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-09-24T13:40:59+03:00 + 2018-09-24T16:24:35+03:00 0 @@ -195,7 +195,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-09-24T13:40:59+03:00 + 2018-09-24T16:24:35+03:00 0 @@ -207,13 +207,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2018-09-24T13:40:59+03:00 + 2018-09-24T16:24:35+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-09-24T13:40:59+03:00 + 2018-09-24T16:24:35+03:00 0