Originally posted by DimPrawn
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Bob update
Collapse
X
Collapse
-
-
Oracle is nowhere in the TPC-E table for performance or price/performanceOriginally posted by TheFaQQer View PostOracle comes top of the TPC-C benchmarks, both in terms of performance and price/performance
TPC-E - Homepage
MS SQL Server holds every position.
TPC-E is a much more modern and relevant benchmark.
TPC Benchmark™ E (TPC-E) is a new On-Line Transaction Processing (OLTP) workload developed by the TPC. The TPC-E benchmark uses a database to model a brokerage firm with customers who generate transactions related to trades, account inquiries, and market research. The brokerage firm in turn interacts with financial markets to execute orders on behalf of the customers and updates relevant account information.
The benchmark is “scalable,” meaning that the number of customers defined for the brokerage firm can be varied to represent the workloads of different-size businesses. The benchmark defines the required mix of transactions the benchmark must maintain. The TPC-E metric is given in transactions per second (tps). It specifically refers to the number of Trade-Result transactions the server can sustain over a period of time.
Although the underlying business model of TPC-E is a brokerage firm, the database schema, data population, transactions, and implementation rules have been designed to be broadly representative of modern OLTP systems.
HTH BIDIComment
-
Originally posted by DimPrawn View PostBecause it's Oracle dumbo.
To insert a row you need sequences, implicit cursors, ref cursor for the ID etc.
Jeez, ever wondered why an Oracle licence costs like £5bn per server?

Does it matter which database is being used ? My solution was a general "SQL" solution which should work on any database.
Or are you saying the Insert into SELECT from query is not supported by Oracle ?
Vote Corbyn ! Save this country !Comment
-
Ah, but on a 30000GB database, the TPC-H benchmark has only Oracle on itOriginally posted by DimPrawn View PostOracle is nowhere in the TPC-E table for performance or price/performance
TPC-E - Homepage
MS SQL Server holds every position.
TPC-E is a much more modern and relevant benchmark.
HTH BIDI
Comment
-
For a plain DB holding data, for a small-medium app, you are right. The moment you want stored procedures or anything fancy, nope.Originally posted by fullyautomatix View PostDoes it matter which database is being used ? My solution was a general "SQL" solution which should work on any database.
Or are you saying the Insert into SELECT from query is not supported by Oracle ?
Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishingComment
-
Did not look at it closely, but I think your solution is more or less what I what I would have thought.Originally posted by fullyautomatix View PostDoes it matter which database is being used ? My solution was a general "SQL" solution which should work on any database.
Or are you saying the Insert into SELECT from query is not supported by Oracle ?
SQL was invented as the simplest and most elegant way to specify any database operation, if Oracle can't handle this solution, it's Oracle not the solution that's a failure.
In short, if Oracle can't do absolutely everything without cursors, its not a proper SQL DBMS.
If it can do everything, but sometimes much slower that it would for a procedural approach, then it's a poor SQL DBMS.
There is nothing in the definition of pure SQL that constrains execution to be slower than a hand-coded procedural solution. SQL specifies what is to be done, not how it is to be done, so if a particular procedural algorithm is optimal, it is the optimisers job to find it. If Oracle is slower with pure SQL than it is with hand-crafted procedural code, it means the DBMS has a poor optimiser.
(I realise this is a bit of an Ivory Tower response. In fairness, I don't know for certain that a SQL DBMS with a perfect optimiser actually exists. I have a good impression of SQL Server, though no large system experience, and believe that the views of my mainframe colleagues are outdated and wrong. They regard all SQL DBMS's, including Oracle, as toys, unfit for any serious purpose.)Last edited by IR35 Avoider; 2 December 2011, 13:46.Comment
-
Originally posted by IR35 Avoider View PostDid not look at it closely, but I think your solution is more or less what I what I would have thought.
SQL was invented as the simplest and most elegant way to specify any database operation, if Oracle can't handle this solution, it's Oracle not the solution that's a failure.
In short, if Oracle can't do absolutely everything without cursors, its not a proper SQL DBMS.
If it can do everything, but sometimes much slower that it would for a procedural approach, then it's a poor SQL DBMS.
There is nothing in the definition of pure SQL that constrains execution to be slower than a hand-coded procedural solution. SQL specifies what is to be done, not how it is to be done, so if a particular procedural algorithm is optimal, it is the optimisers job to find it. If Oracle is slower with pure SQL than it is with hand-crafted procedural code, it means the DBMS has a poor optimiser.
(I realise this is a bit of an Ivory Tower response. In fairness, I don't know for certain that a SQL DBMS with a perfect optimiser actually exists. I have a good impression of SQL Server, though no large system experience, and believe that the views of my mainframe colleagues are outdated and wrong. They regard all SQL DBMS's, including Oracle, as toys, unfit for any serious purpose.)
It is supposed to be a mighty enterprise level database so I would assume it would support standard SQL queries.
All I would say is lets wait and see what our BPM architect has to say about my solution. He has already commented that I should stick to bog cleaning which I assume was a hasty retort.Vote Corbyn ! Save this country !Comment
-
Define "standard SQL queries"Originally posted by fullyautomatix View PostIt is supposed to be a mighty enterprise level database so I would assume it would support standard SQL queries.
All I would say is lets wait and see what our BPM architect has to say about my solution. He has already commented that I should stick to bog cleaning which I assume was a hasty retort.
Your code wouldn't run on Oracle because "SELECT @DinnerId = @@Identity" is meaningless to Oracle.
The approach doesn't look bad, but the suggested implementation won't do it.Comment
-
Originally posted by TheFaQQer View PostDefine "standard SQL queries"
Your code wouldn't run on Oracle because "SELECT @DinnerId = @@Identity" is meaningless to Oracle.
The approach doesn't look bad, but the suggested implementation won't do it.
The identity statement was one I use for SQL server. I assume that there would be similar for Oracle. In any case, if SY is using cursors he would still need the @DinnerId to insert into Dinner_Item table. Therefore substitute my identity statement to whatever method SY is currently using.
The debate here is for the use of cursors in a stored procedure and I have stated that for the problem that SY is facing, cursors are not required and a simple SQL statement would suffice.Vote Corbyn ! Save this country !Comment
-
Nope I didn't as I'm not an Oracle guy. This looks gorgeous though.Originally posted by doodab View PostOn a serious note you do realise you can insert multiple rows using a sequence with something like
insert into dinner_items select seq.nextval, data from dinner_items_metadata where dinner_type = 'lardarse deluxe combo'
don't you?
Love you, don't forget to invoice.
:
Knock first as I might be balancing my chakras.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Comment