Re: Business objects, subset of collection
- From: frebe <frebe73@xxxxxxxxx>
- Date: Fri, 18 Jan 2008 22:54:14 -0800 (PST)
I don't think you should have a grid showing all invoices for one
vendor. It is not practical in the GUI.
The invoices shown are for the selected vendor AND day.
Fine. If the set of invoices in the grid are limited, it wouldn't take
very long time to reposition the cursor.
But how long does it take to execute the SQL query? Without the
metrics, it is impossible to tell if the solution works or not.
Vendor grid: Contains various levels of summary info for ALL invoices
and scheduled payments for each vendor.
I doubt that
select vendorid, sum(amount)
from invoice
group by vendorid
would take too long time. And if it do, you should use materialized
views. If your database doesn't support that, the last resort would be
to create a new redundant column in the vendor table, containing the
sum of all invoice amounts. Obviously this would introduce integrity
problems, and should only be considered if absolutely necessary.
What about payments made from other client computers? Are they
reflected instantly too?
Payments are only scheduled by one person. In a multi-user
application, there would obviously have to be some persistance to a
shared medium (RDB or similar).
If you are building a single-user application, it is easier to live
without a database.
When you say "persistance", are you talking about writing to disk?
Calling
insert into payment (invoiceid, date, amount) values ...
has very little to do with persistence. If, when or how the database
writes something to disk, is controlled by the database.
//frebe
.
- Follow-Ups:
- Re: Business objects, subset of collection
- From: jimbalo22
- Re: Business objects, subset of collection
- References:
- Business objects, subset of collection
- From: jimbalo22
- Re: Business objects, subset of collection
- From: H. S. Lahman
- Re: Business objects, subset of collection
- From: jimbalo22
- Re: Business objects, subset of collection
- From: H. S. Lahman
- Re: Business objects, subset of collection
- From: jimbalo22
- Re: Business objects, subset of collection
- From: H. S. Lahman
- Re: Business objects, subset of collection
- From: frebe
- Re: Business objects, subset of collection
- From: H. S. Lahman
- Re: Business objects, subset of collection
- From: frebe
- Re: Business objects, subset of collection
- From: jimbalo22
- Re: Business objects, subset of collection
- From: frebe
- Re: Business objects, subset of collection
- From: jimbalo22
- Re: Business objects, subset of collection
- From: frebe
- Re: Business objects, subset of collection
- From: jimbalo22
- Business objects, subset of collection
- Prev by Date: Re: Why is Object Oriented so successfull
- Next by Date: Re: Business objects, subset of collection
- Previous by thread: Re: Business objects, subset of collection
- Next by thread: Re: Business objects, subset of collection
- Index(es):
Relevant Pages
|