Monday, January 21, 2013

Fixing slow typing with DbVisualizer

DbVisualizer was very laggy for me. Every keystroke I made, I could watch appearing on the screen. It was so bad that I tried out a lot of different alternatives. Unfortunately almost none seem capable of displaying table data for a Vertic cluster, so I came back and looked for a fix to this.

Luckily, this thread showed the solution: turn off Direct3D support in Java. Don't ask me why this should be a problem, but it seems to be. Must be something with my drivers.

 I just had to insert some Text into the startup script
dbvis, right down at the bottom: 
$INSTALL4J_JAVA_PREFIX "$app_java_home/bin/java" \
   ... -Dsun.java2d.d3d=false \
   -Dinstall4j.jvmDir="$app_java_home" ...
The above is one line in the script, I just formatted it to be easier readable. The part to insert reads
-Dsun.java2d.d3d=false.  
Just put it anywhere in that line. Restart DbVis and the problem is gone!