[php/mysql] mysql_freeresult

Pagina: 1
Acties:

  • TangLeFuzZ
  • Registratie: Juni 2001
  • Laatst online: 23-08 15:45
Hey,

is het slim/handig om na een redelijk zware query (denk aan het pakken van alle topics op een forum voor de boardview), de functie mysql_freeresult() uit te voeren?
Ik bedoel; zul je er wat mee bereiken?
Heel soms komt het bij ons nu wel 's voor dat we een error krijgen dat mysql het aantal connecties niet aan kan, of dat het bij een erg druk moment nogal traag loopt, zal dan bijvoorbeeld die functie effect hebben?

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

PHP Manual:

mysql_free_result() only needs to be called if you are concerned about how much memory is being used for queries that return large result sets. All associated result memory is automatically freed at the end of the script's execution.
Dus als je geen langdurige scripts hebt draaien maakt het niet echt uit.

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz