Re: [U2] [UV] Speeding up a big BY.EXP select

2007-08-13 Thread Clifton Oliver
ailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 1:13 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UV] Speeding up a big BY.EXP select GEEZ people. Why don't you just "ask the computer" rather than debating it? And recognize that the U2 platforms differ dependi

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-13 Thread Jerry Banker
But then it wouldn't be as much fun. :-) -Original Message- From: Clifton Oliver [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 1:13 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UV] Speeding up a big BY.EXP select GEEZ people. Why don't you just "a

Re: [U2] [UV] Speeding up a big BY.EXP select

2007-08-10 Thread Clifton Oliver
GEEZ people. Why don't you just "ask the computer" rather than debating it? And recognize that the U2 platforms differ depending on the flavor the account is in. Us old timers (33 years in MultiValue) need to remember that everything you think you know is wrong. On Aug 10, 2007, at 8:41 P

Re: [U2] [UV] Speeding up a big BY.EXP select

2007-08-10 Thread MAJ Programming
gust 10, 2007 10:32 AM Subject: RE: [U2] [UV] Speeding up a big BY.EXP select > I'm not exactly sure how the programming is done on this but from the > outside it is all relative to how you look at it. Let's take the > statement: > SSELECT CUSTOMERS BY NAME BY CITY > In

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-10 Thread Jerry Banker
- From: MAJ Programming [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 6:24 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UV] Speeding up a big BY.EXP select Jerry: Are you sure. Please make sure that what you are saying is correct. The SSELECT statement has traditionally sor

RE: [U2][UV] Speeding up a big BY.EXP select

2007-08-10 Thread Boydell, Stuart
This is looking very promising but probably also needs 'niced up' dictionaries - our collection of randomly generated dicts doesn't cut it and I'm getting some fields unnesting and some fields as MV lists per unnested row. AA 12345 description of 12345 Description of 9

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Stevenson, Charles
This is so great!! "the WHEN-BY.EXP connection was removed a few releases back." On my 10.0.16 I live under the tyranny of the old regime. My shorts have thawed . . . Wait, now they've frosted over again: I'm reading release notes for 10.1 & 10.2 and I don't see anything about WHEN/BY.E

Re: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread MAJ Programming
tie breaker. Please check again. Thanks Mark Johnson - Original Message - From: "Jerry Banker" <[EMAIL PROTECTED]> To: Sent: Thursday, August 09, 2007 9:39 AM Subject: RE: [U2] [UV] Speeding up a big BY.EXP select > The way I see it the first one will take lon

RE: [U2][UV] Speeding up a big BY.EXP select

2007-08-09 Thread John Jenkins
org Subject: Re: [U2][UV] Speeding up a big BY.EXP select [EMAIL PROTECTED] wrote: > Sure - but how long does it take on one of your fast new MFT drives ;-) Actually, it is exactly the same speed. The temp files that UV uses to do sorts are accessed linearly so regular arrays work just great

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Ray Wurlod
Is there an index on the MV field? If there is, this will speed up an unconstrained sort on that field. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/

Re: [U2][UV] Speeding up a big BY.EXP select

2007-08-09 Thread Doug Dumitru
[EMAIL PROTECTED] wrote: Sure - but how long does it take on one of your fast new MFT drives ;-) Actually, it is exactly the same speed. The temp files that UV uses to do sorts are accessed linearly so regular arrays work just great. It is random access and updates that kill rotating disks.

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Ron Hutchings
arles" <[EMAIL PROTECTED]> Reply-To: u2-users@listserver.u2ug.org To: Subject: RE: [U2] [UV] Speeding up a big BY.EXP select Date: Thu, 9 Aug 2007 11:57:15 -0400 Without a doubt: SELECT BIGFILE BY @ID BY.EXP MV.ATTRIBUTE - It has a

RE: [U2][UV] Speeding up a big BY.EXP select

2007-08-09 Thread colin.alfke
Sure - but how long does it take on one of your fast new MFT drives ;-) Colin Alfke Calgary Canada P.S. Give me a call when they work on 64-bit windows servers... -Original Message- From: Doug Dumitru Boydell, Stuart wrote: > Cool - looks interesting - I'll try that in the morning - tha

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread colin.alfke
In UD (with the proper associations) you can: >LIST ORDERS CUSTOMER.ID PRODUCT.ID PROD.DESC ORD.QTY TOXML To get: This doesn't bother with the sorting or unnesting - which is the whole point of an XML document, is it not? Hth Colin Alfke Calgary Canada -Original Message- Fro

Re: [U2][UV] Speeding up a big BY.EXP select

2007-08-09 Thread Doug Dumitru
Boydell, Stuart wrote: Cool - looks interesting - I'll try that in the morning - thanks. I was curious so I did some testing. Your SSELECT is building very large temp files in /tmp. My test had 20 MVs of 16 bytes each. I ended up with almost 2G of temp files. If your MVs are longer (and i

Re: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Scott Ballinger
On 8/9/07, Womack, Adrian <[EMAIL PROTECTED]> wrote: > > Just one thing to be aware of: SSELECT implies "BY @ID" so the "BY @ID" > in your statement is redundant. Adrian, I don't think that is correct (at least for UV). The implied "BY @ID" sort is always the last sort performed, e.g. "SORT MYFI

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Stevenson, Charles
Without a doubt: SELECT BIGFILE BY @ID BY.EXP MV.ATTRIBUTE - It has always frosted my shorts that in order for WHEN to kick in, you need BY.EXP even if you don't care about the sort order. So, Given that sorting is syntactically necessary, and Given that you don't really care

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Jerry Banker
The way I see it the first one will take longer than the second, although it would have to be a large file you are selecting on. The reason would be that the first one sorts the ID's, redundantly, twice before it gets to the BY.EXP whereas the second one sorts by the ID only once. -Original Me

Re: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread MAJ Programming
on't have to be exploded. If it is the second sentence, then you have to hit it with this kind of query/process. My 2,000,000 cents Mark Johnson - Original Message - From: "Womack, Adrian" <[EMAIL PROTECTED]> To: Sent: Thursday, August 09, 2007 4:15 AM Subject: RE: [U2]

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Boydell, Stuart
I did do some small sample testing and found not much difference between the 2 methods - though on larger sets the BY.EXP seemed marginally faster than the BY @ID BY.EXP. So barring margins of error due to machine load I guess that answers most of my question. The background is extracting data to

RE: [U2][UV] Speeding up a big BY.EXP select

2007-08-09 Thread Boydell, Stuart
Cool - looks interesting - I'll try that in the morning - thanks. >-Original Message- > Do you mean you need to explode them, but not sort them? > If so, use an SQL UNNEST keyword, e.g. ** This email message and an

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Ross Ferris
My first response would be "try it & see" - and as others have pointed out, using SELECT rather than SSELECT would have an impact BUT, then I got to thinking sort order isn't important? So, my question is "what comes next?" What are you feeding the select into, that doesn't need informat

RE: [U2][UV] Speeding up a big BY.EXP select

2007-08-09 Thread Brian Leach
Stuart Do you mean you need to explode them, but not sort them? If so, use an SQL UNNEST keyword, e.g. SELECT SURNAME,FORENAME,TITLE_ID,QTY,PRICE FROM UNNEST BOOK_SALES ON SALE_ITEMS; You can explode a field to a select list by using the TO SLIST clause, e.g. SELECT TITLE

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Womack, Adrian
Just one thing to be aware of: SSELECT implies "BY @ID" so the "BY @ID" in your statement is redundant. To prevent sorting by @ID just use SELECT not SSELECT. So, if you are using SSELECT then you're already sorting by @ID, so I doubt you are going to make it any quicker by modifying your SELECT

RE: [U2] [UV] Speeding up a big BY.EXP select

2007-08-09 Thread Hona, David S
Add the EXPLAIN keyword to your query and see what the UV query analyzer says...sometimes useful, mostly not though ;) Another thing to try is an SQL SELECT, that'll give you a few more grey hairs...! Regards David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On