Subject | Re: [firebird-support] Re: Is some API to get generator value? |
---|---|
Author | Ann Harrison |
Post date | 2011-04-12T21:46:08Z |
On Tue, Apr 12, 2011 at 2:42 AM, karolbieniaszewski
<liviuslivius@...> wrote:
use a generated value?
starting a transaction to get the
generator value. The benefit of events is that the clients are not
constantly polling the database.
You're trying to reintroduce polling, at a slightly lower cost.
Best regards,
Ann
<liviuslivius@...> wrote:
>I don't know what your suggesting here. What sort of a database setting would
>
>> As far as I know, generators are used to get primary keys values for new
>> rows. Inserting a row requires a transaction, so you will need it anyway.
>>
>> Are there real situations when you might need to know a generator value
>> without using it in a transaction?
>>
>
> Generator can be used for some other conditions
> 1. as database settings
use a generated value?
> 2. as replacement for events - you can inc generator value in some conditions eg. some client interest tables are modified.That might be an idea, but the problem with it is not the cost of
> Client read in some interval generator value if is different then previous then data should be refreshed
starting a transaction to get the
generator value. The benefit of events is that the clients are not
constantly polling the database.
You're trying to reintroduce polling, at a slightly lower cost.
Best regards,
Ann