On Mon, Dec 29, 2008 at 9:55 AM, Jay Pipes <[email protected]> wrote:

> All,
>
> There have been a number of changes to allowed data types, SQL syntax,
> character set handling, and, soon, the handling of timezones and temporal
> values.
>
> As the core code base starts firming up, one of the things that needs to be
> designed is a migration program which will be able to take a dump of a MySQL
> database and convert the schema and data within to Drizzle's SQL semantics.
>
> I think it would be good to get a discussion going and see who is
> interested in doing this work.  Contributors would be working closely with
> the team who will handle the documentation of the aforementioned changes in
> SQL syntax and column types.
>
> So, this email serves to light a spark.  Here are some questions to ponder
> and discuss:
>
> a) Should the program be written in a scripting language such as Perl or
> Python?


I would say yes.  It can be more simple this way and allow for easier user
changes.  But this is just opinion (mainly as I have some ideas for how I
would like to do this in Python...import soul, ftw!)

>
>
> b) Should the program be a one-way converter or allow bi-directional
> conversion?


bi-directional sounds nice, but that depends on how MySQL / drizzle
datatypes are mapped.  Will more than one MySQL datatype be converted to a
single drizzle datatype?  If so, that could get hairy.  It's easier to move
from complex to simplified, the other direction requires a bit more human
judgement, IMO.

>
>
> c) Should the program include some ability to recommend best practice
> changes in the event that no conversion from MySQL column types to Drizzle
> types is possible?  For instance, the SET column type is no longer
> supported.  What column type(s) should be suggested as replacements for
> this?


I would say so.  We could have a dictionary of recommended datatypes / links
to docs so a user can make an informed decision about which way they might
like to go.

>
>
> d) Should the program create the actual schemas, or simply produce an
> intermediate SQL script which can be run through the drizzle client in order
> to create the databases?


I would say that creating SQL script might be best.  The user could do a
quick 'quality check' to see what is going to happen, then it would be a
simple matter to pump the SQL through the client to finalize the deal.  It
might also be useful to make a script once, and apply it many times.


>
> e) What kind of initial observations should the program attempt to make
> about the incoming SQL dump?  If it sees a heavy reliance on, for instance,
> the MySQL privilege system, should warnings or errors be raised?


I think warnings should be raised in most cases.  It's good behavior to let
the user know if they aren't getting exactly what they think they are
getting.  There could also be some --suppress-privilege-warnings flag, etc
in case someone just wants to 'power-through' and play with their data on
drizzle (not a 'prime-time' type of run).


>
>
> Hope this gets the brain juices flowing.  Feel free to start a wiki page on
> the Drizzle.org wiki and log any ideas you may have.
>
> Cheers,
>
> Jay
>
> _______________________________________________
> Mailing list: https://launchpad.net/~drizzle-discuss
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~drizzle-discuss
> More help   : https://help.launchpad.net/ListHelp
>
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to