summaryrefslogtreecommitdiff
path: root/architecture
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2009-09-14 13:07:26 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2009-09-14 13:07:26 -0700
commita889afc2a05f31b5a66ea7d2533166e5a1df4971 (patch)
tree5baada671aa2627fd0592c73d15b0c444a165e68 /architecture
parent1c89eed3859875f5d9d9d6678ee34806c735efb6 (diff)
downloadpiny-code-a889afc2a05f31b5a66ea7d2533166e5a1df4971.tar.gz
piny-code-a889afc2a05f31b5a66ea7d2533166e5a1df4971.zip
Adding note on caching associated data.
Diffstat (limited to 'architecture')
-rw-r--r--architecture/data.mdwn2
1 files changed, 2 insertions, 0 deletions
diff --git a/architecture/data.mdwn b/architecture/data.mdwn
index 22061a1..c0d33f4 100644
--- a/architecture/data.mdwn
+++ b/architecture/data.mdwn
@@ -1,5 +1,7 @@
Data model!
+Dynamic data lookup should opportunisticly cache any associated cheap data. For instance, there are three data from stat(/srv/git/$reponame.git), so looking up one should grab the others. /etc/password parsing would be similar.
+
[[!table format=dsv delimiter=# data="""
datum #stored location #constraint
username #usually $ENV{SUDO_USER} #!~ /^git-|^ikiwiki-/ and =~ /^[a-zA-Z0-9_.][a-zA-Z0-9_.-]+$/