OK Karen.   I know I under slept last night and maybe that's the reason
your good advice is not hitting the meat... ...are unindexed queries
against views faster?

If so, why?

At 18:14 12/04/02 -0400, you wrote:
>I have a view that will hold a lot of data.  I wanted to
>search it 2 ways for these where clauses:
>     repdate between ....   and trantype <> 'fr'
>     repdate between ....   and trantype =  'fr'
>
>The first search is very fast.  The second search I had to
>reboot RBase after it was still chugging after 20 minutes.
>
>For the heck of it I changed it to
>     repdate between ....   and trantype = ('fr')
>
>Now it's as fast as the first search!  Rbase won't use indexes
>when the where clause is "<> 'fr'", so I had to do the same for
>the "= 'fr'".  Putting it in parenthesis did the job!
>
>Put this on your list of "gotta remember to try that the next
>time I have a slow view"....
>
>
>Karen
>
>
>================================================
>TO SEE MESSAGE POSTING GUIDELINES:
>Send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: INTRO rbase-l
>================================================
>TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: UNSUBSCRIBE rbase-l
>================================================
>TO SEARCH ARCHIVES:
>http://www.mail-archive.com/rbase-l%40sonetmail.com/

Warmest regards,


Tom Grimshaw
coy:    Just For You Software
tel:    612 9552 3311
fax:    612 9566 2164
mobile: 0414 675 903

post:   PO Box 470  Glebe  NSW  2037  Australia
street: 3/66 Wentworth Park Rd  Glebe  NSW  2037

email:  [EMAIL PROTECTED]
web: www.just4usoftware.com.au

This email and any files transmitted with it are confidential to the 
intended recipient and may be privileged. If you have received this email 
inadvertently or you are not the intended recipient, you may not 
disseminate, distribute, copy or in any way rely on it. Further, you should 
notify the sender immediately and delete the email from your computer. 
Whilst we have taken precautions to alert us to the presence of computer 
viruses, we cannot guarantee that this email and any files transmitted with 
it are free from such viruses.

================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to