Announcement

Collapse
No announcement yet.

mass insert with php

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • mass insert with php

    hello,
    i am performing mass inserts with php and the scripts stops working after some time.

    I disabled the indexes before inserting and fter I enable them.

    a select is performed after inserts and through that the flush statement is performed.

    For example the select is about 2900 rows and I am getting them through a limit 200 step by step and inserting them in another table - after 800 rows it stops working.

  • #2
    Wieso werden 12 Beiträge in deutsch verfasst und der 13te in englisch????
    Christian

    Comment


    • #3
      Hallo,

      ist wohl eher ein PHP-Problem - siehe: max_execution_time

      Gruß Falk
      Wenn du denkst du hast alle Bugs gefunden, dann ist das ein Bug in deiner Denksoftware.

      Quellcode ohne ein Mindestmaß an Formatierung sehe ich mir nicht an! Ich leiste keinen Privatsupport per Mail oder PN!

      Comment


      • #4
        hallo
        danke für den Hinweis - aber dies ist nicht das Problem.

        Ich setze max_execution_time mit ini_set und der Wert wird auch angenommen wie ich mit ini_get sehen kann.

        Außerdem setze ich set_time_limit.

        Gibt es ein Limit in MySQL ab dem es die Indizes neu aufbaut bei vielen Inserts?

        Comment


        • #5
          this problem is solved - i am setting with ini_set the mysql.connect_timeout value and now it is working.

          Comment

          Working...
          X