netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ULOGD2 0/6] DB performance
@ 2009-01-06 22:31 Pierre Chifflier
  2009-01-06 22:31 ` [PATCH 1/6] PostgreSQL: allow local connections Pierre Chifflier
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Pierre Chifflier @ 2009-01-06 22:31 UTC (permalink / raw)
  To: Eric Leblond; +Cc: netfilter-devel

This patchset aims to improve the DB performance with the following
improvements:

* Allow local (unix socket) connections to PostgreSQL database
This one was spotted while profiling using callgrind, and noticing
unexpected calls to SSL functions. Using a local connection improves
speed a lot (by a factor 4 here).

* Allow plain INSERT instead of stored procedure
If the procedure name specified in config is INSERT, then use regular
insertions to the table.
This should fix sqlite support (which does not support stored
procedures), and is much faster than using procedures + split tables SQL
schema.

* As discussed during the previous workshop, we will offer choice
between the nice but slow tables design, and a flat but fast SQL
schema. This patch adds the flat SQL schemas for MySQL and PostgreSQL.

* Comparison between column and key names should be case insensitive in
the DBI module, since some of the supported databases (like Oracle)
return column names in uppercase.

* A few cleanups on useless constraints. Port numbers validity check is
done by the application, so adding these constraints will only slow down
insertions and bring nothing.

I am currently trying to profile ulogd2, and will have some graphs soon
I hope.

Cheers,
Pierre


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-06 23:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 22:31 [ULOGD2 0/6] DB performance Pierre Chifflier
2009-01-06 22:31 ` [PATCH 1/6] PostgreSQL: allow local connections Pierre Chifflier
2009-01-06 22:31 ` [PATCH 2/6] Allow plain INSERT instead of procedure Pierre Chifflier
2009-01-06 22:31 ` [PATCH 3/6] PostgreSQL schema: drop useless constraints Pierre Chifflier
2009-01-06 22:31 ` [PATCH 4/6] Flat SQL schema for PostgreSQL Pierre Chifflier
2009-01-06 22:31 ` [PATCH 5/6] Flat SQL schema for MySQL Pierre Chifflier
2009-01-06 22:31 ` [PATCH 6/6] DBI: lower column name before comparing to key Pierre Chifflier
2009-01-06 23:27 ` [ULOGD2 0/6] DB performance Eric Leblond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).