Menu

About db_mysql.inc

2001-07-28
2001-07-29
  • PIERRE de GEYER

    PIERRE de GEYER - 2001-07-28

    I would like to know why the connexion are persistant connexion in the db_mysql.inc ?
    Is it really interesting with mysql ?

    Thx

    Cyruss
    PS : I usually change it for myself with normal connexion.

     
    • Jesse Swensen

      Jesse Swensen - 2001-07-28

      Persistant connections will provide you with a performance improvement.  One of the most resource expensive activities to a database is establishing  the connection.  Persistant connections removes this need by keeping the connection alive.  If the same user ID, password and database are used again, php say "Hey, I already have a connection, I will use that one." and off it goes.

      There are some down sides as well, but they are minor.

      Also note worthy is that persistant connections do not work with the cgi version of PHP.

       
    • PIERRE de GEYER

      PIERRE de GEYER - 2001-07-29

      Thx 4 ur answer.

      In fact i ask it because I read an article from tim perdue (phpbuilder) where he said that for mysql persistent connections didn't improve performance.
      It is the reason why i asked this question.

      Thx

      Cyruss

       

Log in to post a comment.