Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 10 of 20 total |
tedbquery and "select * from table" |
Tue, Feb 26 2019 9:40 AM | Permanent Link |
Yusuf Zorlu MicrotronX - Speditionssoftware vom Profi | In old advantagedatabase it was normal to have a "select * from mytable" without loading all data to client and doing after a .filtered .... It opened only a cursor and was super fast.
In edb i see "select * from table" needs >20 seconds for a table having lot of rows (>200.000) and columns (>50), this is in edbmanager. I thinked that edb is optimized for such situations ... or we have a config-problem? Yusuf Zorlu MicrotronX |
Tue, Feb 26 2019 9:52 AM | Permanent Link |
Fernando Dias Team Elevate | Yusuf,
Do you have RequestSensitive set to TRUE ? -- Fernando Dias [Team Elevate] |
Tue, Feb 26 2019 10:34 AM | Permanent Link |
Yusuf Zorlu MicrotronX - Speditionssoftware vom Profi | Fernando Dias wrote:
>> Do you have RequestSensitive set to TRUE ? NO, it was a query within ElevateDBManager withouth the two Checkboxes on left marked. Yusuf Zorlu MicrotronX |
Tue, Feb 26 2019 10:59 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Yusuf
As Fernando is hinting - try it with request sensitive checked - if a sensitive result set can be returned you'll see plenty of speed. If not a lot of the time is taken writing the temporary table to disk. Its also worth checking the execution plan since this will let you know what's going on behind the scenes and will often suggest ways to improve performance. Roy Lambert |
Mon, Mar 4 2019 9:10 AM | Permanent Link |
Yusuf Zorlu MicrotronX - Speditionssoftware vom Profi | Roy,
do we have any performance-problems if we use sensitive queries in all cases where this is possible? Anything that can happen if we use them a lot? Yusuf Zorlu MicrotronX |
Mon, Mar 4 2019 9:32 AM | Permanent Link |
Raul Team Elevate | Yusuf Zorlu wrote:
>> do we have any performance-problems if we use sensitive queries in all cases where this is possible? Anything that can happen if we use them a lot? >> No and in most cases sensitive results sets are likely preferable. You need to be aware of the rules for obtaining sensitive results sets (indexes might be needed etc) and that edits would affect actual underlying data - see this section of manual for lot of useful info on this : https://www.elevatesoft.com/manual?action=viewtopic&id=edb2sql&topic=Result_Set_Cursor_Sensitivity Raul |
Mon, Mar 4 2019 10:08 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Yusuf
Pretty much as Raul says. A sensitive result set is pretty much like opening a table. Grab a handle, apply any filters and GO If you want columns in from other tables AND want to be able to edit the base table then don't use JOIN use a subselect instead. Roy Lambert |
Mon, Mar 4 2019 2:13 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Yusuf,
<< do we have any performance-problems if we use sensitive queries in all cases where this is possible? Anything that can happen if we use them a lot? >> No, no problems. In fact, this is what the ODBC driver does if the client application doesn't specify that it *wants* a static (insensitive) result set for a given SQL SELECT statement. Tim Young Elevate Software www.elevatesoft.com |
Mon, Mar 4 2019 2:38 PM | Permanent Link |
Greg Hallam Microcalm Solutions Inc | I had recently done some testing on one of our applications relating to this. We had a query that was selecting a subset of our product file that would take about 3 seconds as it was insensitive and the result was about 75,000 records. If I changed the query to sensitive the result was about 0.5 seconds. The problem we ran into was there were subsequent filters that were set on the result. The insensitive results would filter quickly (< 1 second) but the sensitive result was slow at about 2 seconds for the same result. Ultimately we had better overall useability with the insensitive result set.
|
Tue, Mar 5 2019 2:46 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Greg
>I had recently done some testing on one of our applications relating to this. We had a query that was selecting a subset of our product file that would take about 3 seconds as it was insensitive and the result was about 75,000 records. If I changed the query to sensitive the result was about 0.5 seconds. The problem we ran into was there were subsequent filters that were set on the result. The insensitive results would filter quickly (< 1 second) but the sensitive result was slow at about 2 seconds for the same result. Ultimately we had better overall useability with the insensitive result set. My bet would be on not having indices for the filters you were setting. Insensitive result set c75k records to scan, sensitive - now many? It might be interesting to just apply the filters to table as a query in EDBManager and see what it tells you/ Roy |
Page 1 of 2 | Next Page » | |
Jump to Page: 1 2 |
This web page was last updated on Monday, May 6, 2024 at 03:23 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |