Unix Technical Forum

Re: SEVEN cross joins?!?!?

This is a discussion on Re: SEVEN cross joins?!?!? within the pgsql Sql forums, part of the PostgreSQL category; --> > Splitting locations into subsets (like 2,2,3) doesn't work > because it is possible that low values in one ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Sql

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 11:48 AM
Stewart Ben
 
Posts: n/a
Default Re: SEVEN cross joins?!?!?


> Splitting locations into subsets (like 2,2,3) doesn't work
> because it is possible that low values in one location can be offset

by
> high values in another location, and still result in an excellent

combo.
>
> The good news is these suggestions got me thinking outside
> the box. I think I can program a modified brute-force that bypasses
> large numbers of combos early. It might still be too large/slow, so

I'd be
> interested in finding more info about these "smarter algorithms" in

option

Could you define an view with a calculated field, say, 2 * a1 + 6 * a2 +
3 * a3, and then use this aggregate to score the individual rows? I
haven't looked at the exact nature of the problem, but if you're
multiplying a table by itself, it may be worth redefining the problem in
terms of a simple ranking algorithm, define a column to calculate this,
then sort by that column.

Best regards,

Ben Stewart

--
Robert Bosch (Australia) Pty. Ltd.
Engineering Quality Services, Student Software Engineer (RBAU/EQS4)
Locked Bag 66 - Clayton South, VIC 3169 - AUSTRALIA
Tel: +61 3 9541-7002 Fax: +61 3 9541-7700
mailto:ben.stewart@au.bosch.com
http://www.bosch.com.au/

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:11 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com