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 96985 - Creator should allow you to view a subset of tables in a database
Summary: Creator should allow you to view a subset of tables in a database
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: John Baker
Depends on:
Reported: 2007-03-01 18:31 UTC by bugbridge
Modified: 2008-02-06 14:55 UTC (History)
3 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2007-03-01 18:31:09 UTC
Original status: 1-Dispatched; Suggested Status: NEW

Original submitter: davidvc

Right now if you open a database connection to view its tables, the metadata for
*all* the tables is pulled over, and Creator hangs until this completes.  This
is fine for databases with a small number of tables, but for a database with a
large number (an internal user has 11,000 tables in their Sybase database), it's
a killer and is a waste of time and memory resources.

We should have a way to let the user limit what table metadata is pulled in. 
Also, we should probably not hang the system while processing all results but
display the first set of results immediately while continuing to process the

I agree this is a problem.  I think it also indicates a series of 
'scalability' tests we should probably think through.  What if a table 
has 10,000 columns, for example?

here are some thoughts, none of which I have tested or investigated in 
much detail...

For the 11,000 table problem, the quick workaround is to extract the 
table definitions for the tables he cares about and import them into a 
Java DB database.  He can do his design there, and then when he's ready 
to test with "live" data, switch the data source to be Sybase instead of 
Java DB (although I'm not sure myself how you do this...)

A possible longer-term solution is to allow the user to apply a filter 
pattern connection that can then be used to select a subset of the 
tables.  Another approach is, we don't have to load the entire result 
set into memory before displaying tables.  We can display the first 20 
or so while we're still loading the rest in the background.

We should also keep an eye on memory consumption, caching the metadata 
in a file if the result set is too big.

David VC

Its been running for over 20 hours so far and it still is not half way 
done.  If it goes through all the views after the tables then it is 
going to take even longer.

I am going to leave it up over the weekend and see if the IDE eventually 
comes back or just runs out of memory and crashes.

- xxxx@yyyy.zzz