On Wed, Nov 16, 2016 at 10:42 AM, Wayne Stewart <[email protected]> wrote:
I'm planning at some stage to reimplement external storage but when I > do I'm going to do it my way rather than the automatic way. ...and all of the reasons you mention make sense. I just had a quick look at some of the code I used, and it's a bit long for posting here...and kind of tied into how I manage nightly tasks. Anyway, things to look out for: * I save PDFs using WRITE PICTURE FILE. * Orphans! If an image/document is deleted in the database, what happens during the export? I've got an option to scan the folder after the export and clear out anything that's no longer present in the database. * This is normally a automatic task, so I save lots of details about errors and potential errors. For example, this is a good place to automatically check on available disk space and issue a warning if things are getting crowded. * The flatter the file structure you can create, the easier to deal with. Of course, not if that means having folders with thousands of files...but I like less complex hierarchies, where possible. Ping me if you get into writing this and want to swap notes. ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

