From: Martin G. <gim...@gi...> - 2003-02-25 18:48:40
|
Jeff Dairiki <da...@da...> writes: > On Sun, 23 Feb 2003 01:06:41 +0100 > Martin Geisler <gim...@gi...> wrote: > >> I noticed how the database is locked and unlocked with each >> operation, even on backends like PostgreSQL (and now also MySQL >> with InnoDB) that support transactions. This seams to be something >> that could benefit from a cleanup. > > (Of course one of the big headaches is to optimize the schema while > keeping the backend API general enough that we can write and > maintain the non-SQL backends (dba, flat-file) as well. Also, it's > good to share code as much as possible between the different flavors > of SQL, otherwise we get all kinds of funny bugs creeping into the > lesser-used backends...) Yes, it's not easy have an efficient backend that works with several different databases, some of which cannot use SQL. Or rather, it's somewhat easy if you just reimplement the entire backend for each database, but that's an awful waste of code... >> A similar thing would be a plugin that generates an index like the >> ones you find in the back of most books. > > That's an interesting idea. I'm beginning to think about a more a > general API to allow caching of plugin ouput (this would be > integrated with the caching of marked-up page content). Once that's > in place a plugin like that would be viable. (Until then ... its > worth playing with but is going to be slow.) It doesn't matter much if it's slow, it should only be used on static WikiWikiWebs where you cannot search. > A related idea would be a way to manually enter search terms on > pages. E.g. something like "<?plugin Keywords platypus, funny > animals ?>" These could be used to form a real book-style index, and > to generate a meta keywords tag for search engines... That sounds like a really good idea! It would give much better results than a raw index of all the words, because there keywords would be selected with care... Is there a way for a plugin to save some data (in this case the keywords for a page) in a central place, so that an MakeIndex plugin could get hold of the data to print an index? > Basically the same as Category pages, I guess... Yes, but much more fine-grained. > (Maybe we should generate a keywords meta tag from Category links on > each page?) > > Okay, so now I'm just rambling.... No :-) I like the idea of using links to Category pages as meta information! -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |