Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Randomly select n unique codes from 5mln table
Message
From
09/11/2001 13:54:48
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00579211
Message ID:
00579805
Views:
30
>BTW, here is the problem, I was trying to create a test case:
>
>User has ability to type whatever number of zipcodes for selection criteria, as he/she pleases. My Criteria Form creates a serious of inlist, if the number is less than some max_number (property of class). I currently set it to be 72, so there would be 3 inlists e.g. inlist(zipcode, code1,code2,..,code24) or inlist(zipcode,code25,...,code48) or ...
>If the number is greater, I create a temp table and join to it, so this increases number of joins by 1. This seems to be executed too long, so I'm thinking, what could be reasons for this long execution and would I gain improving in perfomance, if I increase my max_number and would use more inlists, 5, in this particular case...
>
>However, I postponed these tests due to my manager told me, that we probably would implement Data Warehouse for One-time jobs too...

Just an FYI. You may be reaching a limit with the number of joins. But, just wanted to ask if you've created an index on ZIPS for the temporary table.

As you say, the issue may be passé.

Jay
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform