From 9243ef93ae44ef74e0079b8ac8cf58e3b223587e Mon Sep 17 00:00:00 2001
From: Alan Orth
Date: Mon, 7 Dec 2015 19:10:54 +0200
Subject: [PATCH] Add notes for 2015-12-07
Signed-off-by: Alan Orth
---
content/2015-12.md | 18 ++++++++++++++++++
public/2015-12/index.html | 19 +++++++++++++++++++
public/index.xml | 19 +++++++++++++++++++
public/tags/notes/index.xml | 19 +++++++++++++++++++
4 files changed, 75 insertions(+)
diff --git a/content/2015-12.md b/content/2015-12.md
index bda1af531..75db66078 100644
--- a/content/2015-12.md
+++ b/content/2015-12.md
@@ -125,3 +125,21 @@ postgres@linode01:~$ psql -c 'SELECT * from pg_stat_activity;' | grep cgspace |
![PostgreSQL cache (year)](../images/2015/12/postgres_cache_cgspace-year.png)
![PostgreSQL locks (year)](../images/2015/12/postgres_locks_cgspace-year.png)
![PostgreSQL scans (year)](../images/2015/12/postgres_scans_cgspace-year.png)
+
+## 2015-12-07
+
+- Atmire sent [some fixes](https://github.com/ilri/DSpace/pull/161) to DSpace's REST API code that was leaving contexts open (causing the slow performance and database issues)
+- After deploying the fix to CGSpace the REST API is consistently faster:
+
+```
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.675
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.599
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.588
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.566
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.497
+```
diff --git a/public/2015-12/index.html b/public/2015-12/index.html
index bd35870cf..c492e4e46 100644
--- a/public/2015-12/index.html
+++ b/public/2015-12/index.html
@@ -213,6 +213,25 @@ $ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle
+2015-12-07
+
+
+- Atmire sent some fixes to DSpace’s REST API code that was leaving contexts open (causing the slow performance and database issues)
+- After deploying the fix to CGSpace the REST API is consistently faster:
+
+
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.675
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.599
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.588
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.566
+$ curl -o /dev/null -s -w %{time_total}\\n https://cgspace.cgiar.org/rest/handle/10568/32802?expand=all
+0.497
+
+