Subject | Re: Facing Problems in executing the Select query |
---|---|
Author | rambabu_piridi |
Post date | 2007-09-04T12:02:25Z |
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@...>
wrote:
machine. Each query in our case would be within its own transaction.
In the case of an INSERT or UPDATE query the start & commit
transaction would be required. But will this also be true in case of
a SELECT query? (none of the sub-queries update or insert into the
database; they only select data)
Also, how to set ForcedWrites ON/OFF?
Bipasha
wrote:
>We
> > > > Hi All,
> > > >
> > > > We are using Firebird 1.5.3 for our application.
> > arethat
> > > > using a SELECT query which fetches data from four different
> > tables. If
> > > > this query is executed for about 10,000 times, we observed
> > themore?
> > > > number of IO write operations on the Firebird service is much
> > larger
> > > > than the number of IO read operations. Does the number of
> > executions
> > > > of a query affect the number of IO read/ write operations?
> > > >
> > > >
> > > >
> > > > Thanks,
> > > > Sarvani
> > >
> > > everything is happening within the context of a transaction.
> > > The transaction IDs have to written
> > > Alan
> > >
> > Thanks for your post. But could you please elaborate a little
> > We are not very clear about this...transaction or if
> > bipasha
>
> well, you say you execute the query 10,000 times.
> I don't know if you execute it within the context of one
> you start and commit a transaction for each of the 10,000executions.
> I have no idea what language or component set you use for all this.then the
> assuming that you execute a query within it's own transaction,
> server will create the transaction (write), you will request therecords
> (read), you will commit the transaction (write). So yes - theimpact of
> 10,000 queries certainly has an impact on IO read/writeoperations. If you
> are running linux with forced writes off then these opearationswill be
> delayed, if you use Windows with FW ON, then these operations areimmediate.
>We are working on Java/iBatis with Firebird DB on Windows single CPU
> Alan
>
machine. Each query in our case would be within its own transaction.
In the case of an INSERT or UPDATE query the start & commit
transaction would be required. But will this also be true in case of
a SELECT query? (none of the sub-queries update or insert into the
database; they only select data)
Also, how to set ForcedWrites ON/OFF?
Bipasha