Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDBC Request: Allow to only fetch a certain number of rows #5118

Closed
asfimport opened this issue Jul 11, 2019 · 4 comments
Closed

JDBC Request: Allow to only fetch a certain number of rows #5118

asfimport opened this issue Jul 11, 2019 · 4 comments

Comments

@asfimport
Copy link
Collaborator

Franz Schwab (Bug 63561):
How about enhancing the JDBC sampler to only fetch a certain number of rows from the database (the result set of a select query)?

My use case is database load testing. In 99% of the cases I use the JDBC sampler for, I am only interested in the time it took the database to run the query.
I am not interested in the time it took the client (JMeter in that case) to fetch the result set.
A BI client for example might run a query with a big result set, but maybe only fetch the first 100 rows and not the whole result set.
Currently, there is no option in JMeter to do so.
Even when you set the "Count Records" option in JMeter, the whole result set is fetched (in order to count the rows). There is no option to get the result set size without fetching it (this is JDBC standard).
It is not an option to add a LIMIT clause at the end of the query, as databases might have an optimization for that.
For the same reason, it is also not an option to use the JDBC parameter ResultSet.setMaxRows(int).
I am only interested in knowing that the query has been processed successfully (= didn't throw an error).

This is a new bug/feature request, I accidentally hijacked the following bug initially:
#1896

OS: All

@asfimport
Copy link
Collaborator Author

Franz Schwab (migrated from Bugzilla):
Some discussion already took place here:
frschwab@102f0ac

@asfimport
Copy link
Collaborator Author

Franz Schwab (migrated from Bugzilla):
Pull request: #476

@asfimport
Copy link
Collaborator Author

UbikLoadPack support (migrated from Bugzilla):
Merged in trunk:
ab9770b

@asfimport
Copy link
Collaborator Author

光年 (migrated from Bugzilla):
没有中文汉化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant