Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Codebase > Re: relate4quer...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 281 of 310
Post > Topic >>

Re: relate4query

by accademia@[EMAIL PROTECTED] Jun 25, 2007 at 11:06 AM

Rush Strong ha scritto:

>  
>
>  accademia@[EMAIL PROTECTED]
 wrote:
> On 25 Giu, 18:47, accade...@[EMAIL PROTECTED]
 wrote:
>
>
> I am using a DBF that has the following structure:
>
> field1   Numeric   5    0
> field2   Char        5
>
> The DBF has an index CDX. The key expression is str(field1,6)+field2
> I use function relate4queryset("str(field1,5) <> '    0'").
> Why function  relate4optimizeable return 0 (Not optimizeable) ?
>
> Thank you for the help
>
> Regards
> Catello
> Italia
>
>
>
> Sorry for the mismatch.
> The key expression is str(field1,5) + field2
> Regards
>
>
>   Try:
>     
>      relate4queryset("str(field1,5) + field2 <> ' 0'")
>
>  The entire key expression needs to be referenced in order for
optimization to kick in.
>
>   - Rush

Thank you Rush for the quick response.
You are right ! If I use the tag's exact key expression Query
Optimization works.
But in the Codebase User's manual (page 90) I read :
"Specify a query expression that contains in whole or in part, a top
master tag key compared to a constant" so I suppose that I may use a
partial tag's key expression (the n first left characters).
Why instead this doesn't works ?

Regards
Catello
 




 5 Posts in Topic:
relate4query
accademia@[EMAIL PROTECTE  2007-06-25 09:47:17 
Re: relate4query
accademia@[EMAIL PROTECTE  2007-06-25 09:52:26 
Re: relate4query
Rush Strong <rpstrong@  2007-06-25 17:15:55 
Re: relate4query
accademia@[EMAIL PROTECTE  2007-06-25 11:06:38 
Re: relate4query
Rush Strong <rpstrong@  2007-06-25 18:58:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 10:44:16 CST 2008.