From enboig@gmail.com Fri Jun 13 12:23:43 2008 From: =?utf-8?q?Llu=C3=ADs?= To: development@drupal.org Subject: [development] problem rebuild-permissions Date: Fri, 13 Jun 2008 14:23:39 +0200 Message-ID: <45a29f450806130523t3e109a27xb31b1b981d528fc6@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3374325597521803304==" --===============3374325597521803304== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit I have problems rebuilding my node_access table (too much nodes...). Increasing my php execution time/memory limit is not an option so I thougth of creating a script which updates one node at a time, and using javascript loads to save the next node (I know making a module with ajax would be more elegant, but not enough time...) It basically recive a nid, load the node, node_access_acquire_grants(), and refresh with the next node. Should it work or it has some problem? thanks %d ORDER BY nid",$_GET['node'])); if ($actual>0) { $sencer=node_load($actual); node_access_acquire_grants($sencer); } ?> 0 ? " onLoad=\"setTimeout('delayer()', 1000)\"" : "") ?>> 0) echo "doing...".$actual; else echo "Done"; ?> -- *La felicitat ha de ser compatible, compartible i cooperativa. *Envellim quan els records superen les esperances. *Als llocs desconeguts només s'hi arriba per camins desconeguts. *Abans d'imprimir aquest missatge, pensa en el medi ambient. --===============3374325597521803304==-- From drewish@katherinehouse.com Fri Jun 13 18:12:25 2008 From: andrew morton To: development@drupal.org Subject: Re: [development] problem rebuild-permissions Date: Fri, 13 Jun 2008 11:12:23 -0700 Message-ID: In-Reply-To: <45a29f450806130523t3e109a27xb31b1b981d528fc6@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8834296714043082630==" --===============8834296714043082630== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Fri, Jun 13, 2008 at 5:23 AM, Lluís wrote: > I have problems rebuilding my node_access table (too much nodes...). > Increasing my php execution time/memory limit is not an option ... Yeah this was a problem in D5. In D6 there's the batch api that handles this. You might mine this issue for hints: http://drupal.org/node/144337 andrew --===============8834296714043082630==--