java - Exectuing JDBC bulk operation -
i have bulk jdbc operation exectuing concurretly (postgresql 9.4 jdbc driver
). operation run 20-30 seconds. need understand happens thread operation being executed in. thought slept
or being await
until db-server start sending data jvm. so, tried check in debugger , i'm not sure that. here's example wrote test (i used spring simplicity):
public static void main(string[] args) { applicationcontext context = new classpathxmlapplicationcontext("classpath:/applicationcontext.xml"); final dao dao = (dao) context.getbean("dao"); thread t = new thread(new runnable() { public void run() { thread.currentthread().setname("bulk operation"); dao.executebulk(); //1, bulk operation } }); t.start(); }
i set breakpoin @ //1
, after resuming saw following in debugger:
so seems bulk thread
neither asleep
nor awaiting
.
what thread while sql-server prepares data sent? how many resources jvm spend manage thread?
Comments
Post a Comment