Bonjour,

  When  I insert a lot of rows in a table from another table in MyISAM
  format  it  seems  that  indexes  in  the  destination table are not
  updated.

  For  example  in  table  A  I have index 1. This table contains many
  rows.

  I have table B with same structure as table A but empty.

  INSERT INTO TABLE B SELECT * FROM TABLE A;

  There  if  I do a select using index 1 on table B it's very long and
  "explain"  on the query shows me that even if it knows about index 1
  it's not using it.

  The  solution  is  to  do  a  "optimize" on table B but I wonder why
  indexes  are not up to date after the "insert into ... select" query
  ?

  Thanks for you enlightenment :)

  Kinds regards,
  Alex.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to