Hosting, importing and capacity

58 views
Skip to first unread message

Yossi Karp

unread,
Jun 4, 2012, 2:00:39 AM6/4/12
to wp-documen...@googlegroups.com

Great app and I am very impressed with how well it works and how easy it is to use. 

1.      Is it possible to host WP Document Revisions on a file server, rather than a web server/intranet?
2.      Is there an easy way to import thousands of documents that we currently have on the server (they are in Windows folders)? I know there is drag and drop, but will it work for thousands of docs?

3.      Is there a maximum number of docs that WP Document Revisions will hold?

Thank you very much.

Yossi Karp

Benjamin J. Balter

unread,
Jun 4, 2012, 8:30:07 AM6/4/12
to wp-documen...@googlegroups.com, yo...@ykarp.com
Yossi -

Glad you're enjoy it and thanks for the kind words. Hope I can be helpful:

1. Document Revisions runs on WordPress which generally speaking needs some sort of LAMP (or WAMP or MAMP) environment. That said, if you have a Windows-based file server (rather than just a NAS), and install something like XAMPP, that should work. You could even probably build out some sort of import script to monitor a folder so that users could interact with it similar to a standard windows file sever.

2. Yes. Bulk import is fairly straight forward, but is different for everyone's use case. You're going to want to adapt this import script a little to meet your needs (specifically the `wpdr_get_files()` function. If you want to preserve the folder structure, you would register a "folders" custom taxonomy, and then tell the script to assign terms on import depending on what folder the original document is.

3. In theory, there's no maximum number of documents. I've seen installs with tens of thousands that work great. As things get bigger, you'd want to add memory-resident caching like APC or Memcache (I'd look at W3TC if you go this route). The other option (and we're talking in the 100,000 to millions of documents) if you can't go that route, would be to split the documents into separate sub-sites under a multisite install, which would break them into separate tables and allow you to scale horizontally. Again, the limit here is basically theoretical, but it's possible to scale beyond that by breaking up the install into separate databases. In short, the only limit is hardware, for which the need is actually pretty low. As long as it's well configured, you should be fine. The other limit, is obviously file server space.

Hope that helps?
- Ben

Yossi Karp

--
You received this message because you are subscribed to the Google Groups "WP Document Revisions" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wp-document-revisions/-/DzB17tn4-zkJ.
To post to this group, send email to wp-documen...@googlegroups.com.
To unsubscribe from this group, send email to wp-document-revi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wp-document-revisions?hl=en.

Reply all
Reply to author
Forward
0 new messages