In the framework/webapp/config/ directory there is a serverstats.properties
file that you can turn off and on stats.

For example:

stats.persist.REQUEST.hit=false
stats.persist.EVENT.hit=false
stats.persist.VIEW.hit=false
stats.persist.ENTITY.hit=false
stats.persist.SERVICE.hit=false

The above properties will turn off persisting the stats for ofbiz which is
where you get constraint errors in mysql because the server stats use a
timestamp as a primary key.


Brett


On Sat, Jun 23, 2012 at 9:07 PM, 李明洋 <cnsd.limingy...@gmail.com> wrote:

> ho
>
> how to disable server hit?
> 在 2012-6-24 上午10:10,"Brett Palmer" <brettgpal...@gmail.com>写道:
>
> > The only place I have found this to be a problem is in the server hit
> > entity.  The server hit functionality is configurable.  We disable that
> > functionality.  We write custom applications using the ofbiz framework
> and
> > don't do a lot of ecommerce  apps so its not a problem for us.
> >
> > Brett
> > On Jun 22, 2012 11:48 PM, "Sanjeev Gupta" <subscr...@sanjeevg.com>
> wrote:
> >
> > > Thanks Bertt
> > > How do you manage with the timestamp problem mentioned by Ruth.
> > >
> > > SkipDever
> > > Is replication native in 9.1 or though add-on components ?
> > >
> > > -----
> > > Rgds
> > > Sanjeev
> > > www.sanjeevg.com
> > > @sanjeevgcom
> > > --
> > > View this message in context:
> > >
> >
> http://ofbiz.135035.n4.nabble.com/Ofbiz-with-MySQL-or-PostgreSQL-tp4633893p4633954.html
> > > Sent from the OFBiz - User mailing list archive at Nabble.com.
> > >
> >
>

Reply via email to