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 221446 - 16s - org.netbeans.modules.db.sql.editor.ui.actions.RunSQLAction.isActionEnabled()
Summary: 16s - org.netbeans.modules.db.sql.editor.ui.actions.RunSQLAction.isActionEnab...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-11-04 21:08 UTC by Exceptions Reporter
Modified: 2012-11-28 02:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 194525


Attachments
nps snapshot (34.80 KB, application/nps)
2012-11-04 21:08 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-11-04 21:08:43 UTC
This bug was originally marked as duplicate of bug 205784, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 Beta (Build 201210011125)
VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20
OS: Windows 7

User Comments:
GUEST: I clicked Run



Maximum slowness yet reported was 16226 ms, average is 16226
Comment 1 Exceptions Reporter 2012-11-04 21:08:45 UTC
Created attachment 127101 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2012-11-05 13:36:09 UTC
isActionEnabled seems to access the disk to find out the right mimetype during checking its enablement state!
Comment 3 Jaroslav Havlin 2012-11-26 14:56:49 UTC
http://hg.netbeans.org/core-main/rev/a17a862cecef
Test presence of SQLExecuteCookie in DataObject's lookup before checking the mimetype. Is should be much faster.
Comment 4 Quality Engineering 2012-11-28 02:34:21 UTC
Integrated into 'main-golden', will be available in build *201211280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a17a862cecef
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #221446: 16s - org.netbeans.modules.db.sql.editor.ui.actions.RunSQLAction.isActionEnabled()