Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Stop logging of certain database updates
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kye Etherton  
View profile  
 More options Jun 1 2012, 3:30 pm
From: Kye Etherton <ad...@sugarcubeproductions.co.uk>
Date: Fri, 1 Jun 2012 12:30:11 -0700 (PDT)
Local: Fri, Jun 1 2012 3:30 pm
Subject: Stop logging of certain database updates
I have a query which runs on every page load and updates a row in the
database. For some annoying reason it's logging them all.

How can I get it to stop logging them on this single query?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stéphane  
View profile  
 More options Jun 2 2012, 10:55 am
From: Stéphane <stephane.er...@gmail.com>
Date: Sat, 2 Jun 2012 16:55:49 +0200
Local: Sat, Jun 2 2012 10:55 am
Subject: Re: [diem-users] Stop logging of certain database updates

Which logging ?
dmDoctrineRecord log ?

If so, look at the ->notify() method of dmDoctrineRecord.
Overload this method within your model class.

Regards,

On Fri, Jun 1, 2012 at 9:30 PM, Kye Etherton <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kye Etherton  
View profile  
 More options Jun 2 2012, 11:02 am
From: Kye Etherton <ad...@sugarcubeproductions.co.uk>
Date: Sat, 02 Jun 2012 16:02:45 +0100
Local: Sat, Jun 2 2012 11:02 am
Subject: Re: [diem-users] Stop logging of certain database updates

Yea, I've had to write raw SQL to stop the object editing from appearing
on every page load.
Yours Sincerely

Kye Etherton
Managing Director

Sugar Cube Productions Ltd

Company Registered in England and Wales, registration number: 07856043

On 02/06/12 15:55, Stéphane wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stéphane  
View profile  
 More options Jun 2 2012, 7:33 pm
From: Stéphane <stephane.er...@gmail.com>
Date: Sun, 3 Jun 2012 01:33:25 +0200
Local: Sat, Jun 2 2012 7:33 pm
Subject: Re: [diem-users] Stop logging of certain database updates

I think this is the best solution anyway.

:)

On Sat, Jun 2, 2012 at 5:02 PM, Kye Etherton <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michal Filip  
View profile  
 More options Aug 3 2012, 4:41 am
From: Michal Filip <improvisio.softw...@gmail.com>
Date: Fri, 3 Aug 2012 01:41:02 -0700 (PDT)
Local: Fri, Aug 3 2012 4:41 am
Subject: Re: Stop logging of certain database updates

Have a look at the following code - might be helpful:

<code>
class xyzPluginConfiguration extends sfPluginConfiguration{

  public function initialize(){
    $this->dispatcher->connect('dm.record.modification', array($this,
'listenToRecordModificationEvent'));
  }

  //suppress video hits update flooding
  public function listenToRecordModificationEvent(sfEvent $e) {
      if($e['type'] == 'update'
      && ($e->getSubject() instanceof SmVideo
          || $e->getSubject() instanceof SmContestItem))
                $e->setProcessed(true);
  }

}

</code>

Dne pátek, 1. června 2012 21:30:11 UTC+2 Kye Etherton napsal(a):


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »