[gnome-db] Questions about a possible asynchronous gda behaviour



Hi.

I'd like to know what is the gda behaviour while querying a PostgreSQL
server. 

Is it asynchronous? That is: the query is launched with
"gda_connection_execute_single_command", but this function returns after
making the query, without waiting for the datamodel to be filled with
the real data. The application should block when trying to access to
datamodel rows not filled yet, and should unblock when these rows get
the real data.

I don't know if this is the actual behaviour, but if it isn't, IMHO, I
think it's a necessary feature: when a program has to show a very long
list of data, I cannot wait until having all the rows before starting to
show the first of them.

I know that PostgreSQL, with libpq, support this behaviour
(http://www.postgresql.org/docs/7.3/interactive/libpq-async.html), where
you make a query, and then ask libpq for data a lot of times until all
the data has been sent.



-- 
David Marín Carreño <david aspl es>
Advanced Software Production Line, S.L.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]