Re: convert WebDNA from flat file to MySQL

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66895
interpreted = N
texte = Marc, I have been doing this a lot. I have found that its easiest to load the entire contents via INFILE, takes a second. However, depending on your tables data types, you need to prep the webcat data. For instances, make sure dates are in correct format, make sure your columns are large enough to hold the webcat data, etc.. Also, make sure you import the data into the correct charset. For migrating to MySQL from webcat, I have found it best to setup the tables, write migration scripts, then upon rollout execute your scripts to populate your data. Your scripts will clean, prep, and load your data into the tables via select statements. Even here you have the option to do one large SELECT using commas to separate your value groups SELECT (value1, value2, value3,etc),(value1, value2, value3,etc),etc.. OR you can execute a select for each row. Its up to you. Hope this helps. Marc Thompson wrote: > Anyone have experience converting an existing Webcatalog application > from flat file database to MySQL? Just looking for any pointers, > gotchas and/or best practices. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: convert WebDNA from flat file to MySQL ( Adam O'Connor 2006)
  2. convert WebDNA from flat file to MySQL ( Marc Thompson 2006)
Marc, I have been doing this a lot. I have found that its easiest to load the entire contents via INFILE, takes a second. However, depending on your tables data types, you need to prep the webcat data. For instances, make sure dates are in correct format, make sure your columns are large enough to hold the webcat data, etc.. Also, make sure you import the data into the correct charset. For migrating to MySQL from webcat, I have found it best to setup the tables, write migration scripts, then upon rollout execute your scripts to populate your data. Your scripts will clean, prep, and load your data into the tables via select statements. Even here you have the option to do one large SELECT using commas to separate your value groups SELECT (value1, value2, value3,etc),(value1, value2, value3,etc),etc.. OR you can execute a select for each row. Its up to you. Hope this helps. Marc Thompson wrote: > Anyone have experience converting an existing Webcatalog application > from flat file database to MySQL? Just looking for any pointers, > gotchas and/or best practices. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Adam O'Connor

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Re:Part 2 - [showif] if variable exists (1998) Location of Browser Info.txt file (1997) too many nested ... problem (1997) Deleting Orders (1997) Opening 'order file'. (1999) Round up prices (2000) (1997) upgrade? (1997) Future of WebDNA (was urls) (2005) checksum for credit cards? (1997) re: keep W* in front applescript? (try Cron) (1998) [Writefile] path (2005) WebCat2b15MacPlugin - [protect] (1997) my price won't move (1997) RE: webcat license???? (1997) Nested vs conditional (1997) FWD: Autoproxy Bug with WebCatalog and FireSite (1997) strange problem listfiles and movefile (2000) Search logic? (1998) problems with 2 tags (1997)