我尝试使用SchemaCrawler从Oracle数据库获取MPD。 此工具生成一个点文件,然后使用点生成图形。
但是一小时后,处理仍然没有完成,所以我尝试使用以下命令在我的点文件上启动自己的点:
dot -v -Tpng schemacrawler.7007049984130928063.dot> graph.png
在下面的点文件中,我尝试减少边缘的数量,并且它持续了大约60个边缘,持续2分钟,从而它永远不会完成。 =>档案:http://pastebin.com/Wvup5NTF
我得到以下追踪:
C:\dev\softs\schemacrawler-oracle-10.08.02>dot -v -Tpng schemacrawler.7007049984130928063.dot > graph.png
dot - graphviz version 2.30.1 (20130214.1330)
libdir = "C:\dev\softs\graphviz"
Activated plugin library: gvplugin_pango.dll
Using textlayout: textlayout:cairo
Using render: cairo:cairo
Using device: png:cairo:cairo
Activated plugin library: gvplugin_dot_layout.dll
Using layout: dot:dot_layout
The plugin configuration file:...
network simplex: 28 nodes 80 edges maxiter=2147483647 balance=2
之后,没什么。 有没有办法让它更快,并能够管理这么多的节点和边缘(我认为这不是很高)?
由于
答案 0 :(得分:1)
尝试更新Graphviz。我试过这个文件,它对我来说很好。这是详细的输出:
dot - graphviz version 2.36.0 (20140111.2315)
Using render: cairo:cairo
Using device: png:cairo:cairo
libdir = "/usr/local/lib/graphviz"
Activated plugin library: libgvplugin_dot_layout.6.dylib
Using layout: dot:dot_layout
The plugin configuration file:
/usr/local/lib/graphviz/config6
was successfully loaded.
render : cairo dot fig map pic pov ps quartz svg tk vml xdot
layout : circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
textlayout : textlayout
device : bmp canon cgimage cmap cmapx cmapx_np dot eps exr fig gif gv icns ico imap imap_np ismap jp2 jpe jpeg jpg pct pdf pic pict plain plain-ext png pov ps ps2 psd sgi svg svgz tga tif tiff tk vml vmlz x11 xdot xdot1.2 xdot1.4 xlib
loadimage : (lib) bmp eps gif jpe jpeg jpg pdf png ps svg
fontname: "Helvetica" resolved to: (ps:pango Helvetica, REGULAR) (PangoCairoCoreTextFont) "Helvetica"
network simplex: 28 nodes 27 edges maxiter=2147483647 balance=2
network simplex: 28 nodes 27 edges 0 iter 0.00 sec
network simplex: 4 nodes 4 edges maxiter=2147483647 balance=2
network simplex: 4 nodes 4 edges 0 iter 0.00 sec
network simplex: 1 nodes 0 edges maxiter=2147483647 balance=1
network simplex: 1 nodes 0 edges 0 iter 0.00 sec
Maxrank = 0, minrank = 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross SchemaCrawler_Diagram: 0 crossings, 0.00 secs.
network simplex: 1 nodes 0 edges maxiter=2147483647 balance=2
network simplex: 1 nodes 0 edges 0 iter 0.00 sec
routesplines: 0 edges, 0 boxes 0.00 sec
Using render: cairo:cairo
Using device: png:cairo:cairo
dot: allocating a 601K cairo image surface (312 x 493 pixels)
gvRenderJobs SchemaCrawler_Diagram: 0.10 secs.
这是生成的图像: