• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Profiler Enabled Fixes Database SQL Update

#1
Hi,
  I've got a hyperlink in a view that downloads a generated PDF (a lab badge).  Each generated PDF receives a successive number for individual badge tracking (autoincrement), different from their user id.  I do a db->update to set previous badges to inactive and THEN an insert for the new badge information.

However, I'm finding that the update and insert never happens unless attempted several minutes later.  BUT, if I enable the profiler in the badge generating controller, everything flows like it should.

Any ideas?

Thanks.
Reply

#2
Could it be that the update will be done after the pdf is generated or the download is forced? in this case the update will be done after the download is finished and i could be a gap on big generated files and the following sql function.

Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.