Click here to Skip to main content
15,899,025 members
Home / Discussions / Database
   

Database

 
GeneralRe: How do I get all the Ids from my last insert in Mysql? Pin
karengsh28-Jun-17 0:36
karengsh28-Jun-17 0:36 
AnswerRe: How do I get all the Ids from my last insert in Mysql? Pin
ZurdoDev28-Jun-17 9:48
professionalZurdoDev28-Jun-17 9:48 
QuestionAccess ComboBox Query Question Pin
Bassam Abdul-Baki27-Jun-17 14:16
professionalBassam Abdul-Baki27-Jun-17 14:16 
QuestionNeed to load bulk Data with some conditions Pin
indian14327-Jun-17 10:14
indian14327-Jun-17 10:14 
AnswerRe: Need to load bulk Data with some conditions Pin
Mycroft Holmes27-Jun-17 19:26
professionalMycroft Holmes27-Jun-17 19:26 
GeneralRe: Need to load bulk Data with some conditions Pin
indian14328-Jun-17 8:14
indian14328-Jun-17 8:14 
GeneralRe: Need to load bulk Data with some conditions Pin
indian14312-Jul-17 7:41
indian14312-Jul-17 7:41 
QuestionORDER BY issue with Interbase XE SQL Server Pin
User 1106097925-Jun-17 2:32
User 1106097925-Jun-17 2:32 
Dear Experts
I have a more or less complex query in my database which returns in average about 50 to 100 rows from a table let's say TBL_A containing about 1 million rows (this with left join to another table containg about 10 million records).

The query itself returns the result in about 0.03 seconds which is pretty much nice I think. The amount of data per row is much less than 1KB.

But as soon I add an "ORDER BY TBL_A.ID" the query needs 1.5 seconds; Where TBL_A.ID is the indexed primary key, integer.

I assume the "query compiler" does try to use the index on TBL_A.ID to perform sorting and thats why the whole PLAN becomes inefficient.

Question:
Is there a way to tell the SQL Server not to use "TBL_A.ID index" for sorting and therfore force an "in Memory sorting"?
Any hint is appreciated, also if it is MS SQL related, I think I can transform it by myself to Interbase.

Note:
A work around of course would be that I stay without ORDER BY in the query and let the client sort the result, but I don't like to do this.

Thank you very much in advance for your hints.


modified 19-Jan-21 21:04pm.

QuestionRe: ORDER BY issue with Interbase XE SQL Server Pin
Eddy Vluggen25-Jun-17 3:06
professionalEddy Vluggen25-Jun-17 3:06 
GeneralRe: ORDER BY issue with Interbase XE SQL Server Pin
User 1106097925-Jun-17 3:24
User 1106097925-Jun-17 3:24 
GeneralRe: ORDER BY issue with Interbase XE SQL Server Pin
Eddy Vluggen25-Jun-17 3:40
professionalEddy Vluggen25-Jun-17 3:40 
QuestionSQL: Split calendar week between a given two date time Pin
Number0523-Jun-17 3:29
Number0523-Jun-17 3:29 
AnswerRe: SQL: Split calendar week between a given two date time Pin
Richard Deeming23-Jun-17 6:18
mveRichard Deeming23-Jun-17 6:18 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Number0526-Jun-17 22:06
Number0526-Jun-17 22:06 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Number0527-Jun-17 5:10
Number0527-Jun-17 5:10 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Richard Deeming27-Jun-17 5:37
mveRichard Deeming27-Jun-17 5:37 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Number0528-Jun-17 4:30
Number0528-Jun-17 4:30 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Richard Deeming28-Jun-17 7:46
mveRichard Deeming28-Jun-17 7:46 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Number053-Jul-17 1:41
Number053-Jul-17 1:41 
QuestionBasic Entity Framework Question Pin
Kevin Marois21-Jun-17 7:54
professionalKevin Marois21-Jun-17 7:54 
AnswerRe: Basic Entity Framework Question Pin
mike1402125-Jun-17 21:24
mike1402125-Jun-17 21:24 
QuestionPDO Return Single Result, How To Return Different Record From 1 Column Multiple Rows Pin
Member 1326709919-Jun-17 1:21
Member 1326709919-Jun-17 1:21 
Questionsingle DataSet having multiple DataTables from multiple databases Pin
Hailu Worku Obsse14-Jun-17 21:24
professionalHailu Worku Obsse14-Jun-17 21:24 
AnswerRe: single DataSet having multiple DataTables from multiple databases Pin
Richard Deeming15-Jun-17 1:51
mveRichard Deeming15-Jun-17 1:51 
GeneralRe: single DataSet having multiple DataTables from multiple databases Pin
Hailu Worku Obsse16-Jun-17 2:17
professionalHailu Worku Obsse16-Jun-17 2:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.