Joinutility seperatorLogin utility separator Infobright.com
   
 
Allow INSERTs from SELECTS
Posted: 21 February 2011 08:56 AM   Ignore ]  
Newbie
Rank
Total Posts:  35
Joined  2010-04-20

Hi,

First, thanks for all the features available in ICE.
I know that you keep DML for the enterprise version for commercial purposes.
Even though there are great open source ETL softwares available, I like to run some of the transformations directly in ICE because of its excellent speed.
The DML functions I miss the most are:
1. TRUNCATE TABLE - I know about and actually use the stored procedure which recreates the table.  But I think this could be made available without the need for the stored procedure.
2. INSERT INTO ... SELECT ... : INSERTs directlly from the result of a query: I know you can export the result from a query and then load it afterwards and that’s what I currently do, but this seems so awkward and time consuming (and also disk space consuming). But allowing inserts from a query would make it follow the standards and much easier to use in transformations.
3. A way to delete the files used in the dumping and loading routines like the one above since currently I need to dump the result of the query and reload it afterwards.  But how can I delete this file from an Infobright connection?

Thank you.

Luis Fernando

Profile
 
Posted: 21 February 2011 09:57 AM   Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  20
Joined  2008-12-12

Take a look at MYSQL proxy script for CTAS’es in contributed software section.

Profile
 
Posted: 21 February 2011 10:17 AM   Ignore ]   [ # 2 ]  
Sr. Member
Avatar
RankRankRankRank
Total Posts:  763
Joined  2008-08-18

Hi,

lfkpoa - 21 February 2011 08:56 AM

1. TRUNCATE TABLE - I know about and actually use the stored procedure which recreates the table.  But I think this could be made available without the need for the stored procedure.

Even in commercial version it is better to drop/recreate table than to truncate it. It’s cleaner and guarantees immediate disk space reusability, unlike truncate or delete.

Regards,

Signature 
Profile