summaryrefslogtreecommitdiff
path: root/day1/non-scalar-data.txt
diff options
context:
space:
mode:
Diffstat (limited to 'day1/non-scalar-data.txt')
-rw-r--r--day1/non-scalar-data.txt59
1 files changed, 59 insertions, 0 deletions
diff --git a/day1/non-scalar-data.txt b/day1/non-scalar-data.txt
new file mode 100644
index 0000000..908cf84
--- /dev/null
+++ b/day1/non-scalar-data.txt
@@ -0,0 +1,59 @@
+# Non-Scalar Data
+https://joind.in/event/php-uk-conference-2019/storing-non-scalar-data
+Derick Rethans
+
+## Redis sets SSAD
+
+- key binding - safe string
+- sets of data
+- taggable
+
+## Document data stores
+- Usually JSON
+- Richer
+- MongoDB - single master
+- CouchDB - multi master
+- ES - text search index
+
+## MongoDB
+- pecl/mongodb
+- mongodb/mongodb
+
+docs are PHP objects or assoc arrays
+
+## Relational Database
+- normalisation
+
+- postgres
+ - HSTORE
+ - JSON/JSONB
+
+
+# Querying data
+
+Sets - SISMEMBER and SMEMBER
+- Aggregations
+- buckets
+- postgres - non standard
+
+## Redis
+- Can add to sets
+- Atomic
+- fast
+- counters
+
+DONT: RETRIVE MANIPULATE STORE
+
+ Do we do this at d3R?
+
+ redis bad at scaling
+
+ joned.in/25887
+
+
+# Useful links
+https://redis.io/commands/sadd
+https://www.postgresql.org/docs/9.1/hstore.html
+https://wiki.openstreetmap.org/wiki/PostgreSQL
+https://en.m.wikipedia.org/wiki/Benford%27s_law
+https://php-ml.readthedocs.io/en/latest/machine-learning/workflow/pipeline/