-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Connections api results widget #44051
Conversation
Looking great! Can I suggest a small refinement to the fetch more behaviour? I think good logic could be:
This would give users an opportunity to see if they've made an error in their SQL immediately before we go ahead and fetch all the results (potentially avoiding unwanted expensive database work), but also allow the full advantage of your threaded model to fetch all results so that they're ready for the user "in advance". Make sense? |
I would rather prefer to leave it like it is now, the reason is that fetching ALL rows in case of a huge DB could crash QGIS due to out of memory conditions. Probably we could achieve the best of both solutions by pre-fetching a certain number of features and keeping them in a cache but I'm not sure it worths the added complexity. |
Error in spatial index exists check.
6d4e64c
to
78a42cf
Compare
Fair enough. The thing I'm not so taken with is the progress bar shown in the GUI which only progresses as the table is scrolled. To me that's a bit odd UI -- I could imagine a user sitting and waiting for ever for the progress bar to complete, thinking that the query is still running and that they need to wait before they can do anything. Maybe just remove the bar entirely? |
You are right, to explain the genesis of the progress bar:
Now, I'd like to keep the progress bar while doing the query execution in step 1. For the fetching step I'm ok, to leave the feature fetched counter and remove the progress bar (or maybe just show-hide it briefly when the actual fetching is happening, it may be slow on certain connections). About the execution time of step 1, we need to show it all the times because the step 2 starts immediately after step 1 is completed. |
Sounds good to me! |
Great work Alessandro -- you should be very proud of this one!! |
@nyalldawson thank you for reviewing this and for the valuable advice! |
@@ -52,6 +54,12 @@ bool QgsHanaProviderResultIterator::hasNextRowPrivate() const | |||
return mNextRow; | |||
} | |||
|
|||
long long QgsHanaProviderResultIterator::rowCountPrivate() const | |||
{ | |||
// TODO: hana team, this is for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrylov Can you take care of the implementation and check whether we have or should implement additional methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I will take a closer look.
Can you please have a look at this issue : |
Description
This is the implementation of QGIS Enhancement: Port DB Manager Table Management Functionalities to Browser: SQL execution (part 3) qgis/QGIS-Enhancement-Proposals#205
Features