diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
commit | 183851b06bd6c52f3cae5375f433da720d410447 (patch) | |
tree | a477257decbf3360127f6739c2f9d0ec57a03d39 /docs/deferred.txt |
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'docs/deferred.txt')
-rw-r--r-- | docs/deferred.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/deferred.txt b/docs/deferred.txt new file mode 100644 index 00000000..445eb0e4 --- /dev/null +++ b/docs/deferred.txt @@ -0,0 +1,19 @@ + +deferred.txt + +A few of the database updates required by various functions here +can be deferred until after the result page is displayed to the +user. For example, updating the view counts, updating the +linked-to tables after a save, etc. PHP does not yet have any +way to tell the server to actually return and disconnect while +still running these updates (as a Java servelet could), but it +might have such a feature in the future. + +We handle these by creating a deferred-update object (in a real +O-O language these would be classes that implement an interface) +and putting those objects on a global list, then executing the +whole list after the page is displayed. We don't do anything +smart like collating updates to the same table or such because +the list is almost always going to have just one item on it, if +that, so it's not worth the trouble. + |