Re: more dimensional method like a query...
- From: "Daniel Parker" <danielaparker@spam?nothanks.sympatico.ca>
- Date: Tue, 29 Nov 2005 08:01:40 -0500
"Pi421" <jakoeble@xxxxxx> wrote in message
news:1133246847.675036.223860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> the bottle neck is the database
I can't believe that
.... and the middleware the data is passed thropugh.
but I can believe that :-(
> I need to work with this... :(
> I have 64 Combinations.
> first attribute with any value * 4 secsond Attribute with any value = 4
> * third attribute with any value = 16
> * fourth attribute with any value = 64
> so there are psossible 64 combinations of the attributes...
> And at the beginning I need to store the stock depending on every
> attribute
Why? Have you tried linear search on a single collection, testing the four
attributes of each stock?
If that's too slow, create a map on one attribute (the one with the most
variability) to narrow down the number of items you need to search. If
that's still too slow, create a map with two attributes. But linear seach
is very fast on in-memory items, so keep it simple.
> Ans i because of database and middleware i need to cache the stock....
>
Because of middleware, that's sad. Not SOA middleware, per chance?
Application developers should not generally be writing caches. Writing
caches is hard. Soon you'll hit the issues of liveness, expiry, and
revalidation. Databases cache also, and they're better at it than
application developers.
Regards,
Daniel Parker
.
- References:
- more dimensional method like a query...
- From: Pi421
- Re: more dimensional method like a query...
- From: H. S. Lahman
- Re: more dimensional method like a query...
- From: Pi421
- Re: more dimensional method like a query...
- From: H. S. Lahman
- Re: more dimensional method like a query...
- From: Pi421
- more dimensional method like a query...
- Prev by Date: Re: How to generate statecharts from C code
- Next by Date: Re: more dimensional method like a query...
- Previous by thread: Re: more dimensional method like a query...
- Next by thread: Re: more dimensional method like a query...
- Index(es):
Relevant Pages
|