Skip to main content
David Aldridge's user avatar
David Aldridge's user avatar
David Aldridge's user avatar
David Aldridge
  • Member for 11 years, 9 months
  • Last seen more than a month ago
  • Haddenham, United Kingdom
awarded
awarded
comment
How can I improve performance of Order By clause in Oracle
@Raj "ORDER BY requires all rows to be FETCHED before they can be ordered." That's not 100% true -- an index might be used to both select the rows required and to determine the required order.
comment
How can I improve performance of Order By clause in Oracle
Do you need to optimise this query in order to get the first rows back from it as soon as possible, or to get all rows back as soon as possible? If the former then you might benefit from an index-based order by at the expense of a longer total query time. If the latter then a full scan and sort is likely to be fastest, but it will take a while for the first rows to be returned.
comment
Is SQL*Net message from dblink > 30% a performance issue?
I would begin by comparing this snapshot with one taken in a period where you were not observing this problem.
answered
Loading…
answered
Loading…
awarded
comment
Optimal database for large number of columns or rows
"simple look-up" by what value(s)? "find mean" within each row, or across rows for particular columns? PostgreSQL will not manage that many columns anyway ... postgresql.org/about Also do you have to just load this data once, or does it also require incremental or complete updates?
revised
Loading…
comment
What can be the downside of always having a single integer column as primary key?
I'm not convinced that it's the execution of such queries that is the primary problem that people have with such a design -- it's the writing of the query that they often object to.
comment
What can be the downside of always having a single integer column as primary key?
And yet many systems do have synthetic integer primary keys on every table (almost every Ruby on Rails app ever written, for example), without suffering from such problems. They also never suffer from the problem of having to push changes to primary keys (that were never supposed to happen) to all of the foreign key tables.
comment
What can be the downside of always having a single integer column as primary key?
@AaronBertrand I would say that the only way in which they might be more efficient is if a join was not needed at all. The only places I consider the use of natural keys is with standard code lists such as ISO4127 currency codes (which are human-recognisable), and I might use GBP, EUR etc as the foreign key to an primary or alternative key on the currency code table.
comment
Way to restore database in 'noarchivelog' mode
So the instance was running at the time that the system crashed, and is now refusing to start because of detected inconsistencies?
comment
Does inserting in order have the same effect as clustering?
Not strictly on-topic, but for Oracle you would achieve this with a direct path (APPEND) insert having an "order by" clause. Good question, btw.
answered
Loading…
comment
Help in Performance Tuning Required
You know that count(1) is the same as count(*), right?
revised
how to synchronize Oracle data with SQL Server
Removed text that might be annoying to potential answerers
Loading…
1
2
3 4 5
10