Database design issue
- From: shaji.cc@xxxxxxxxx
- Date: 24 Aug 2005 06:40:07 -0700
Hi:
I have a database design issue. Let me first state the problem.
A user stores his transaction details like
order id, user id, order desc, amount spend, transaction currency
into a table. Each user has an own-currency associated with him.
But he is free to do transactions in any currency.
A report has to be generated for this table. Catch is that, who ever
is generating the report wants to see the amount in his own currency
(otherwise he cant total the amount).
So at the time of report generation, for each row, it has to calculate
the FX rates for that amount. This creates huge performance problem.
Introducing 2 or 3 columns more and storing amounts in diffrent
currencies was the first idea came to my mind. But this doesnt scale
well.
Can anyone suggest an idea to overcome this.
Thanks in advance.
.
- Follow-Ups:
- Re: Database design issue
- From: mike
- Re: Database design issue
- From: Babu Kalakrishnan
- Re: Database design issue
- Prev by Date: Re: Applet using jdbc (ms sqlserver)
- Next by Date: Re: Bug in Oracle org.w3c.dom.Node ?
- Previous by thread: PreparedStatement and SYSDATE Performance Tuning
- Next by thread: Re: Database design issue
- Index(es):
Relevant Pages
|
|