Subject | Re: Facing Problems in executing the Select query |
---|---|
Author | rambabu_piridi |
Post date | 2007-09-06T07:08:04Z |
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@...>
wrote:
We are not starting & committing the transaction explicitly, since
it is only a select query.
To measure the I/O activity we are checking the I/O read/ write
values against the firebird service (fbservice.exe) in task manager
while the query is in execution.
Bipasha
wrote:
>for
> > > >What if start transaction & commits are not written explicitly
> > (since
> > > >the query in question is a select query)? Will they still work
> > > > implicitly?
> > >
> > > I'm not sure if you're aware of but FB needs a transation even
> > read onlyand
> > > operations (like SELECT), so whether or not you've 'explicitly'
> > started one,
> > > the transaction was created (by your 'connection components')
> > (hope)within
> > > commited at some point.
> > >
> > > Regards,
> > > Anderson
> > >
> >
> >
> >
> > I see.
> > In our case, as i had earlier mentioned, each query would be
> > its own transaction. When we execute the same query for say 40i/o
> > times, the number of i/o reads is comparabable to the number of
> > writes. However, when the loop goes to around 10,000, the numberof
> > i/o writes is very much larger than the number of i/o reads.are you
> > Any clue?
> >
> > Bipasha
> >
>
> are you committing each transaction before starting the next? or
> leaving the first transaction open until the last is ready tocommit?
> and that's all you're doing in this 10,000 cycle loop?Yes, only the query is being looped in this 10,000 loop.
>
> start transaction
> select data
> commit transaction
> loop
>
> ?
> Alan
>
We are not starting & committing the transaction explicitly, since
it is only a select query.
To measure the I/O activity we are checking the I/O read/ write
values against the firebird service (fbservice.exe) in task manager
while the query is in execution.
Bipasha