facebook

Database Explorer Table Preview limit

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #213531 Reply

    jbee
    Member

    Hey,
    I am using the Database Explorer and when I preview a table, in the TableInfo:Preview pane, all I get are the first 100 rows of the table, as per the settings. However, as the table gets used I am more interested, more often then not, in the later records and have to revert to an SQL Query window.

    I would like to know whether it is possible to alter the behaviour to either increase the number of rows returned, to a really high number or to preview the last 100 records.

    Thanks.

    #213541 Reply

    snpe
    Member

    see preferences

    #213569 Reply

    Riyad Kalla
    Member

    jbee, as snpe correctly pointed out, you can change these settings under Window > Preferences > MyEclipse > DB Explorer

    #213596 Reply

    jbee
    Member

    thanks for your responses.

    Unfortunately, my problem is not resolved. I am aware of the preferences which is what i was implying by ‘as per the settings’, sorry if this didn’t get across.

    The problem is that the preview limit is 100 records. So if there is a table with say 150 records, you only see the first 100. As you are developing and the table is getting filled more and more you are normally interested in the most recently added records. It is those records that I would like to be able to see in the Preview Pane. Otherwise this view is not very useful for any table that contains more than 100 records.

    once again tia

    #213604 Reply

    Riyad Kalla
    Member

    hmm… interesting request, I’ll pass it along to the developer of this and see if there is a generic way to SELECT the last 100 inserted records… if not, then this probably won’t happen.

    #213607 Reply

    snpe
    Member

    You have icon in toolbar of ‘sql results’ view – retrieve all rows

    Maximum is 5000 rows (in preferences)

    regards

    #213690 Reply

    support-jeff
    Member

    You can also select the table in the database navigator, right-click and Create Select Statement, and add an ORDER BY to the query to get what you want. I know its a bit more work, but the use case you present is not an ordinary one (at least IMHO and experience).

    #213706 Reply

    snpe
    Member

    Jeff,
    You can drop limit on 5000 rows (if user set more rows and get out of memory it is user’s problem – maybe that set warning in preferences)

    regards

    #213739 Reply

    support-jeff
    Member

    snpe –

    Not sure I totally follow the reasoning. Are you saying that we should drop the SQL Row Limit preference altogether and replace it with a warning? If so, I do not understand the motivation. If it is to give users an option to make queries unlimited, I can see a checkbox (or set limit to 0) for unlimited rows.

    #213771 Reply

    snpe
    Member

    You don’t understand me
    I want limit, but not constraint to 5000 rows (in preferences) – when user change this limit (without constraint) in preferences then ME can warn user for possible out of memory
    I use scrollable resultset in production for table with large rows and then limit isn’t important because application have only xxx (i prefer 100) rows in memory and fetch another from database for request

    regards

    #213867 Reply

    support-jeff
    Member

    ok – sorry, now am understandink. I did not realize that the SQLExplorer plugin on which the ME DB Explorer is based had a maximum allowed limit of 5000. That is definitely worth fixing. I will add an issue for this.

    #214084 Reply

    jbee
    Member

    Hey, just to get back on track, my original question was about the TableInfo:PreView Tab _not_ the SQL Preview Pane.

    The scenario is that I am doing some DBUnit testing. My code runs and puts some stuff into the table. DBUnit checks this and flags a test Failiure. I want to inspect what went into the table.

    I could, of course, do an SQL query and look in the SQL Preview pane. By the time I write this I may as well have some constraints and I wouldn’t have a problem. But say I don’t want to write a query for a quick look; the data _is_ in the table as the last inserted records and I have this preview facility anyway. The problem is that the preview looks at the first 100 records which, to all extents and purposes, will remain the same and I’m interested in the last 100+
    Think unix ‘tail’ and you’ll get the idea.

    Thanks.

    #214087 Reply

    Riyad Kalla
    Member

    jbee,
    I believe Jeff addressed this and there is no universal way to do this, atleast that is what I understood his concern to be.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: Database Explorer Table Preview limit

You must be logged in to post in the forum log in