I'd say neither is very efficient. Your database solution
is very inefficient. If one client has added 10000 rows,
and then all clients are silent for an hour, your server
is plowing through 36 million rows - neither of them "new".
If client and server are running on the same machine, why
not use a named pipe to communicate? Or a socket?
Abigail