|
Cookbook /
SQLite-TalkPlease place your comments here. --Petko March 04, 2008, at 05:01 AM Good day Petko, I am setting up PmWiki using BlogIt for the homepage, combined with wiki and publish to PDF capabilities for other pages. How robust is your SQLite recipe? Is it currently used in production environments? Do you continue to support it with bugfixes and improvements? It is not extensively tested but there are no known bugs. It is currently used in a dozen small sites with 1-3 editors and <1000 visitors/day. Installing it together with other recipes which modify the PageStore class may be tricky. --Petko December 02, 2011, at 05:10 AM Thank you very much for the warning about CustomPageStore. I will reconsider flatfiles, since PDF capability is essential.
Luke, December 2, 2011, 07:09 AM EST
Also, what is the crossover threshold at which point performance is noticeably improved by switching from flat files to SQLite? How many thousands of text files does it take for standard PmWiki to slow down a bit, where SQLite-enhanced PmWiki is faster? I am especially interested in search speed, as I do not care to set up Google to handle my search function. The recipe is not extensively tested in various environments. The performance of the flat files depends much on the hardware (SSD disks are faster than PATA/SATA which are faster than IDE disks) and on the filesystem -- a recent ReiserFS or Ext4 system will be very fast for many small files. Using it in wikis with many authors editing at the same time may degrade the performance. See also this discussion at the mailing list. --Petko December 02, 2011, at 05:10 AM Thank you, Hi Petko, I am interested in trying this recipe but I want to be sure I have a backup plan in place. Is it possible to uninstall the SQLite recipe but keep page edits that were made while it was installed? Thanks, Rik Blok? February 22, 2010, at 08:10 PM Hello. No, not yet. --Petko February 22, 2010, at 10:14 PM Thanks for letting me know, Petko. There's no rush, I appreciate all the great work you're doing! -- Rik Blok? February 23, 2010, at 12:01 AM Isn't it dangerous to store the DB in No it isn't, Short URLs don't work anymore with version 20090414. The short url page variables (ShortName, ShortPage, ShortURL) show now the default page names. Only the display of the short URLs is broken - the redirection of short URLs still works. Thanks, fixed in 20090422 (just released). --Petko April 22, 2009, at 10:42 AM This recipe is fantastic! I hope it will prove itself stable so to be used on productions sites. Blues March 05, 2008, at 04:55 AM Wow, I'm very impressed, Petko! You mention that there's the possibility of storing page-text variables in separate fields... have you done that yet? If so, this could be a much simpler solution than DataQuery for many sites, because DataQuery has all the overhead of ADOdb. Ben Stallings March 09, 2008, at 11:20 AM Thanks for your comments! Blues: yes I plan to use it (if performance is really better) on a number of productions sites, so hopefully it will get better. Ben: no, I haven't but I will in the next few days/weeks for a real website. The code is written so that such local customizations can already be added (in the $SQLiteWriteFunctions list); I'll show some examples soon: in the meantime, reading the code and tinkering with it is allowed... :-) --Petko March 10, 2008, at 04:34 PM This is an excellent recipe Pekto, well done! Generally seems to work well on my Win32 server with PHP 5.2 and the latest PmWiki. If you are interested I have the following observations:
--Smc April 13, 2008, at 10:11PM BST Thanks a lot for your feedback. Here are my comments:
$HandleDiffFmt[array_search('function:PrintDiff', $HandleDiffFmt)] = 'function:PrintDiffInline';
You also could set this line, for the paginated links to default to "markup view" (slightly different from the code in the recipe): if(!isset($_GET['source'])) $_GET['source'] = $_REQUEST['source'] = 'y';
$WikiLibDirs = array(
&$WikiDir,
new PageStore('wiki.d/{$FullName}'),### this line changes
new PageStore('$FarmD/wikilib.d/{$FullName}')
);
Thanks, --Petko April 13, 2008, at 06:09 PM Wow, what was a fast response, thanks for that. Here's my follow-up feedback:
In summary a happy man, you've sorted all the issues I found and deconflicted with recipes I use! More icing on the cake would be a way to automatically import 'old' flat files into the sqlite database without editing each one - I have over a thousand! --Smc April 14, 2008, at 10:23PM BST
Thanks. --Petko April 14, 2008, at 05:28 PM I have just converted 1.280.000 txt files into pmwikifiles and used the PerGroupSubDirectories recipe to store those files on wiki.d and it goes like this:
$FmtPV['$ixI'] = 'strtoupper(substr($group,0,1))';
$FmtPV['$ixII'] = 'strtoupper(substr($group,0,2))';
$WikiDir = new PageStore('wiki.d/$ixI/$ixII/$Group/{$FullName}');
Pmwiki works fine if I don't use pagelist or try to search anything, but I was wondering if could still use pmwiki for this site, perhaps using your recipe but I got some questions about it. My questions are:
Thank you for any advice you may have CarlosAB July 26, 2008, at 01:16 PM Hi. First, I do not know anyone who used this recipe with that many files -- I have at most 2-300 wiki pages in the database. A test with that many files will be great to see if there is some difference. Second, there is not yet an "import" function that would copy all wiki pages to the SQLite database: when you install the recipe, only newly created or edited pages will be placed on the database. An import function is on my ToDo list, but I am not sure when it will happen. About your questions:
Hope that helps. --Petko July 30, 2008, at 05:28 AM Wow PmWiki with SQLite is fast as hell ! Tested with 1000+ pages : pagelist, includes, searches etc. performs A LOT faster. Trully amazing. SQLite support should be included into PmWiki core IMHO. Nice job Petko ! -- Arnold Talk page for the SQLite PageStore class recipe (users?). |