insert into table from select slitting data in blocks