Hi $UNKNOWN,
Ignoramus19458 wrote:
>
> I made changes, so that I do a COMMIT once in a while, roughly once
> every 100,000 rows or so. I split the work into chunks and process
> one chunk at a time, first populating another identical table, and
> them doing INSERT SELECT.
>
> This is going to be my modus operandi, as I want to be able to use the
> master table most of the time. This allows me to lock it for
> populating only once per day or per week, instead of badgering it with
> INSERTs all the time.
Why do you believe INSERT ... SELECT being faster than INSERT alone?
Especially if you use an optimized INSERT operation:
- LOAD DATA INFILE -or-
- prepared INSERT statement -or-
- multi-row INSERT syntax
I can think of only one scenario where this would make sense: if your
data arrives in random order and you can do INSERT ... SELECT in PK
order.
>>> I googled for "mysql
>>> datawarehouse engine" and it appears to be a couple of engines that
>>> claims to be better than innodb for DW.
>>
>> Told you so.
>
> What engine would you suggest. though?
XL
>> Stay informed about: The total number of locks exceeds the lock table size