This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 41590 - [perf] Some actions in DB Explorer take a long time, blocking AWT thread
Summary: [perf] Some actions in DB Explorer take a long time, blocking AWT thread
Status: CLOSED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Radko Najman
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-04-01 13:01 UTC by Antonin Nebuzelsky
Modified: 2006-03-24 10:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
OptimizeIt window snapshot - creating DB table in AWT thread, blocking it for the time (87.69 KB, image/png)
2004-09-10 17:07 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2004-04-01 13:01:43 UTC
There are some actions in DB Explorer which can
take quite a long time and they are currently
executed in AWT thread, blocking the IDE until
they finish, without any progress being displayed,
the IDE simply "frozen" (grey).

This behaviour must be changed to be correctly
responsive, not freezing the IDE.

For example here are some times I measured for
actions (with trunk build 200403311800, oracle
connection using jdbc:oracle:thin to a server on
the local network). Of course the times can be
much much longer when using a slower DB connection.


1) ADDING A COLUMN to an existing table:
3062ms, 2750ms, 2922ms

2) CREATING A TABLE with a few columns:
703ms, 319ms, 1219ms

3) RECREATE TABLE:
969ms, 500ms, 359ms


Note that for example Delete table action is done
asynchronously, not blocking the IDE.
Comment 1 Antonin Nebuzelsky 2004-04-01 15:16:32 UTC
4) REFRESH on an expanded table node
Comment 2 Radko Najman 2004-04-02 09:12:40 UTC
add. 1-3: It seems the generated command is not executed in non-AWT
thread. Commands executed from command window run in a separate thread.
Comment 3 Radko Najman 2004-08-02 14:06:50 UTC
Hopefully fixed.
Actions run in a separate thread.
Comment 4 Antonin Nebuzelsky 2004-08-25 13:42:13 UTC
Sorry, I still see the problem.
Comment 5 dmladek 2004-08-26 14:54:28 UTC
Tondo, you mean problem in those 3(4) cases you've mentioned or
somewhere else? 
Thanks
Comment 6 Antonin Nebuzelsky 2004-08-27 15:02:28 UTC
Yes.
Comment 7 Radko Najman 2004-09-06 15:12:12 UTC
Which action do you exactly mean? All mentioned actions run in a
separate thread, not in AWT thread. Could you attach a thread dump,
please?
Comment 8 dmladek 2004-09-08 09:51:55 UTC
Tondo, the FTD, please.
Otherwise I close it as fixed or worksworme. I can't see anything wrong.
Comment 9 Antonin Nebuzelsky 2004-09-10 17:07:53 UTC
Created attachment 17559 [details]
OptimizeIt window snapshot - creating DB table in AWT thread, blocking it for the time
Comment 10 Radko Najman 2004-09-20 10:09:18 UTC
Thanks for the snapshot, it should be fixed now.
Comment 11 Martin Schovanek 2005-11-18 16:06:30 UTC
Verified