Wednesday, March 23, 2011

Hibernate JDBC batching

Just made the Hibernate JDBC batching work properly.

Here are essential parts:

1. Make sure "hibernate.temp.use_jdbc_metadata_defaults" setting is not used.
2. Make sure JDBC driver supports JDBC caching.
3. Set "hibernate.jdbc.batch_size" to something reasonable like 50.

Nothing else should be needed.

Monday, February 21, 2011

udev SYMLINK does not work

It took me years until I finally forced myself to look into udev source code and find out why RUN attribute always work perfectly, but NAME, SYMLINK and MODE often fail to work properly.

The symptoms are also well described here:
http://ubuntuforums.org/showthread.php?t=1329255

I found out that if "uevent" file in sysfs directory of appropriate directory does not contain a version number, udev silently ignores the whole rule and never says anything in logs.

So, there are two possible solutions for the problem. One is to use RUN attribute only that would perform all the actions needed and the other is to fix the kernel module which creates such non-nonsensical entries.