| | |
Oracle table design help
Please support our Oracle advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
I have around 2 million vouchers of some fixed denomination (say 10 and 20) Typical values
For each payment transaction,I fetch one voucher wrt.transaction amount and mark it as used
(So it will not be used for any other transaction)
I have 10 parallel threads processing incoming transaction. I am expecting 30 transactions per second.
Initially the update takes 0.002 millisecond but after few hours it reaches 2 seconds.
I even tried with partitioning table also(status N one partition and defalut another partition).
Platform details
Linux RHEL 5
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
Suggestions please.
Oracle Syntax (Toggle Plain Text)
CREATE TABLE vouchers(pin VARCHAR2(20) PRIMARY KEY ,amount NUMBER,status CHAR(1),extra_value NUMBER); CREATE INDEX IDX_AMOUNT_STATUS ON vouchers(amount,status);
Oracle Syntax (Toggle Plain Text)
amount,status ,COUNT(status) 10 N 1000000 10 U 700000 20 N 300000
(So it will not be used for any other transaction)
Oracle Syntax (Toggle Plain Text)
UPDATE vouchers SET status='U' WHERE amount=:txn_amount AND staus='N' AND ROWNUM=1 RETURNING pin,extra_value INTO :pin,:extra;
Initially the update takes 0.002 millisecond but after few hours it reaches 2 seconds.
I even tried with partitioning table also(status N one partition and defalut another partition).
Platform details
Linux RHEL 5
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
Suggestions please.
Last edited by johnbach; 28 Days Ago at 2:57 am. Reason: Oracle version
![]() |
Similar Threads
- Change MS access table design (Visual Basic 4 / 5 / 6)
- rest. menu table design (MS Access and FileMaker Pro)
- need help with table design (Database Design)
- Help on General Best Practices for Table/Database Design (Database Design)
- HELP!Populate Datagrid using ORACLE table (Visual Basic 4 / 5 / 6)
- New Table Design (Database Design)
- Oracle Field Not Displayed Correctly In MS ACCESS (Oracle)
- database table design problems (Database Design)
Other Threads in the Oracle Forum
- Previous Thread: What all i can include in my project??
- Next Thread: dbms
| Thread Tools | Search this Thread |
2009predictions acquisition amazon.com bartz bernanke cia citrix cloudcomputing crm database dell economy editor enterprise enterprise2.0 enterprisesoftware federalreserve forbes hp ibm intellipedia internet larryellison layoffs linux loughridge mediawiki michaeljackson microsoft neverland nortel notebooks oil operatingsystem oracle palm rimm saas salesforce sap seagate socialcomputing sql sun sybase technologystocks virtualiron virtualization vmware wiki wikipedia xen yahoo zoho





