On mer, 2002-02-13 at 17:00, Chuck Smith wrote:
My first thought when I read this was to have two
seperate versions of the page. One for the server and
one for the editor. Basically when someone saves a
page, this creates an html page and saves a seperate
wiki page. This way all processing would be done only
when someone saves a page rather than everytime
someone loads a page?
Is there a flaw in my reasoning other than the
database doubling in size? I guess it depends on
which is more important: space or speed?
Nothing wrong with it, except that that's pretty much what we do already
by keeping a cached copy that's been completely converted from wiki
markup to HTML.
I'm not sure what advantage would be gotten out of storing a version
that has had HTML tags worked over, but still needs the wiki code
converted into HTML every time we load it. We get more speed by caching
the completely parsed version, or more storage savings by reparsing it
every time and not storing anything but the the editable text.
Storing the HTML-munged version seems like the worst of both worlds. :)
I'm willing to be convinced, though, if there's a really good reason I
haven't thought of or if I'm misunderstanding the problem.
-- brion vibber (brion @
pobox.com)