NetTalk Central

Author Topic: where do I put prop:sql to speed up my select?  (Read 4910 times)

pcrafton

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
where do I put prop:sql to speed up my select?
« on: March 31, 2008, 04:17:02 PM »
Where would I put a Prop:Sql SELECT statement in the WebBrowse for record retrieval? If I am not mistaken that would speed up retrieval of my browse records. SQL seem to run fairly slow if I use Prop:filter.

Regards

Paul Crafton
PTS Solutions

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: where do I put prop:sql to speed up my select?
« Reply #1 on: March 31, 2008, 08:25:06 PM »
Hi Paul,

What does your filter look like? The most common cause of slow browses is incorrect filter statements.

Also, since the browse is based on a VIEW (just like a normal Clarion browse) it would seem to me that you're better off using Prop:SqlFilter over Prop:Sql. Or better yet the SQL() funtion. See normal Clarion docs for more help on SQL().

In terms of placement - right click on the browse procedure and search for LOOP. This is the start of the browse loop, and you'll see code (and embed points) right before it where the filter can be set.

Cheers
Bruce

pcrafton

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
Re: where do I put prop:sql to speed up my select?
« Reply #2 on: April 01, 2008, 09:53:57 AM »
Bruce:

as per normal you are a genius with the quick reply.

Paul