[Hello,

The firebird manual says that generators are thread-safe [1]. How does the  
firebird engine guarantee that two consecutive executions of a "SELECT  
NEXT VALUE FOR..." do not return the same value? Does it use a lock on the  
RDB$GENERATOR table? Does the call to "SELECT NEXT VALUE..." block, when  
another thread is reading/writing into it? Would that mean that having  
multiple clients connected and issuing these commands simultaneously  
degrade the performance of the database?

My application case is the following: I want to append a column to some  
tables in my database representing an "update counter". Whenever an insert  
or update command is issued, this field will be incremented (globally for  
the whole database).


[1]  
http://www.firebirdsql.org/file/documentation/reference_manuals/user_manuals/html/generatorguide-basics.html

-- 
Matheus Degiovani
Gigatron Software e Treinamentos Ltda.
(18) 3649-4045
MSN: [email protected]

--

Críticas ou Sugestões? Ligue para Ouvidoria Gigatron: (18) 3649-4048


------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu.  Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to