Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

LQO - Ambiguous how on earth do you get this working in a grid

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    LQO - Ambiguous how on earth do you get this working in a grid

    I've searched the the help and all the threads - man, all I need is a clear point-by-point example of how to implement this feature - any assistance appreciated, i have 400,000 record in this table now and it can’t even display a person by surname in under 30 seconds – indexed or not.
    Last edited by peteconway; 11-12-2007, 02:16 AM.
    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein, (attributed)
    US (German-born) physicist (1879 - 1955)

    #2
    Re: LQO - Ambiguous how on earth do you get this working in a grid

    Your filter expression needs to match an index expression exactly. There are a few other details but for what you need it should be simple.

    If you have an index:

    alltrim(surname)

    and provide a filter (with myVar being the value):

    alltrim(surname) = myVar

    you should be in good shape.

    Remember to alltrim(myVar) as well before using it.

    If this doesn't help enough, how about showing us your index expression and filter attempt?
    -Steve
    sigpic

    Comment


      #3
      Re: LQO - Ambiguous how on earth do you get this working in a grid

      Steve - thanks for that I'll give it a go tonight - check out what the help file says:

      Use at least one of the same fields used in the query.

      If you use multiple fields with different data types, the first field used must be type character,

      The data type of the data in the index key must match the data type of the field you are searching.

      Use an order expression that contains either a single field, or two fields concatenated using the plus operator (+), such as in the expression Lname+Fname.

      Not use the Unique Only option

      Not use a filter expression
      Insanity: doing the same thing over and over again and expecting different results.
      Albert Einstein, (attributed)
      US (German-born) physicist (1879 - 1955)

      Comment


        #4
        Re: LQO - Ambiguous how on earth do you get this working in a grid

        Hi Pete,

        Originally posted by peteconway View Post
        Not use the Unique Only option

        Not use a filter expression

        Both of the above refer to the definition of the permanent index on the table, not the definition of the query
        Regards,

        Ira J. Perlow
        Computer Systems Design


        CSDA A5 Products
        New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
        CSDA Barcode Functions

        CSDA Code Utility
        CSDA Screen Capture


        Comment


          #5
          Re: LQO - Ambiguous how on earth do you get this working in a grid

          Sorry, I'm just totaly lost on this.

          I just don't get "what-goes-where" in the GRID.

          I have a grid - I want to use the LQO on a field in the table called fullname, i have an index called fullname alltrim(fullname)

          When fullname is entered in the search, where the field property is set to fullname, I want the LQO to display the reslult.

          When you say set the variabe - where do I do that, how do I get the search property into the variable?


          When you say "Index expression" does that mean use or don't use the order function. -

          I really am lost on this and it concerns me I may be losing the plot.
          Insanity: doing the same thing over and over again and expecting different results.
          Albert Einstein, (attributed)
          US (German-born) physicist (1879 - 1955)

          Comment


            #6
            Re: LQO - Ambiguous how on earth do you get this working in a grid

            If you have the index you describe, and simply build a Search on the Fullname field, you may be all done.

            If it's apparent that the query is still taking too long, try using the BeforeSearch event of the Search object, with code something like this:

            Code:
            fullname = alltrim(SearchDataSubmitted.FULLNAME)
            When you build an index, you have to choose an Order (ascending or descending) and if you don't Alpha will select the former for you anyway. This part is not a big deal and not a factor in what's causing your grief. Just choose ascending.
            -Steve
            sigpic

            Comment


              #7
              Re: LQO - Ambiguous how on earth do you get this working in a grid

              I too am having the same problem. Attached screenshots show the setup. When I run a lastname search in the desktop, it takes 7 seconds to return 66 records - the same search on the web takes 50 seconds. Then when I click next to display the next 10 records, it takes another 50 seconds.

              What could be taking so long?

              Comment


                #8
                Re: LQO - Ambiguous how on earth do you get this working in a grid

                Your screenshot doesn't show which table contains the Lastname field.

                I don't work with grids based on a View very much, but I strongly suspect that this is the cause of your problem. I'm not sure how Alpha executes this from the web server, but from a desktop it's the equivalent of having a set. LQO doesn't work if you're trying to query a child table in the set.

                Try making a grid based only on the table that contains the Lastname field, add a Search feature and see how well that performs.
                -Steve
                sigpic

                Comment


                  #9
                  Re: LQO - Ambiguous how on earth do you get this working in a grid

                  Actually I just finished doing that & it worked great. The problem is that I need to display info from the other files (ARHIST & POLICY) in the result grid. The FINBUS file has the lastname field - the other two files are linked by AccountNo.

                  As I said , I created the same set in the desktop & it is much faster. Obviously adding these two files to the view is slowing it down, but I don't understand why since it works well in the desktop.

                  Comment


                    #10
                    Re: LQO - Ambiguous how on earth do you get this working in a grid

                    Originally posted by APFCClyde View Post
                    Obviously adding these two files to the view is slowing it down, but I don't understand why since it works well in the desktop.
                    I'm not sure that is the problem.

                    You could easily test by making a grid and search based only on the FINBUS table and verify performance.
                    Al Buchholz
                    Bookwood Systems, LTD
                    Weekly QReportBuilder Webinars Thursday 1 pm CST

                    Occam's Razor - KISS
                    Normalize till it hurts - De-normalize till it works.
                    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                    When we triage a problem it is much easier to read sample systems than to read a mind.
                    "Make it as simple as possible, but not simpler."
                    Albert Einstein

                    http://www.iadn.com/images/media/iadn_member.png

                    Comment


                      #11
                      Re: LQO - Ambiguous how on earth do you get this working in a grid

                      Al, that is what I did earlier. I created one with FINBUS only & it was very fast. As soon as I add the other two tables it slows to a crawl. Of course, I've seen this happen on the desktop also but in this case the desktop set was built like the view & is 10 times faster than the web version. Not sure what to do short of hand coding my own search to pull the FINBUS recs first to a temp table then matching the other two tables for the info I need.

                      Comment


                        #12
                        Re: LQO - Ambiguous how on earth do you get this working in a grid

                        Originally posted by APFCClyde View Post
                        Al, that is what I did earlier. I created one with FINBUS only & it was very fast. As soon as I add the other two tables it slows to a crawl. Of course, I've seen this happen on the desktop also but in this case the desktop set was built like the view & is 10 times faster than the web version. Not sure what to do short of hand coding my own search to pull the FINBUS recs first to a temp table then matching the other two tables for the info I need.
                        How about keeping the search on 1 (one) table but use calculated fields (using lookupc) to provide the missing data for your grid?

                        Comment


                          #13
                          Re: LQO - Ambiguous how on earth do you get this working in a grid

                          Originally posted by APFCClyde View Post
                          Al, that is what I did earlier. I created one with FINBUS only & it was very fast. As soon as I add the other two tables it slows to a crawl. Of course, I've seen this happen on the desktop also but in this case the desktop set was built like the view & is 10 times faster than the web version. Not sure what to do short of hand coding my own search to pull the FINBUS recs first to a temp table then matching the other two tables for the info I need.
                          What I'm concerned about is that the linkage from parent to child has the proper index set up for the child.

                          So, you are saying that a desktop set is in-place with the exact same linkage as the view? Or was that another similar but different situation?

                          A one to one linkage from parent to child shouldn't add a significant amount of time to the retrieval if the indexing on the child is properly established.

                          I'd build a set on the desktop with the same linkages as the view. That'll cause the index structure to be correct. I'd also verify the index validity by running a5_checkindexdialog() from the desktop and check the indices of the children tables.

                          If none of that works, post the tables and web objects so we can test them... What you are experiencing is not consistent with what I find in my tables and views.

                          (And I hope we don't have to use calculated fields with lookups because that causes many more table opens and closes than necessary.)
                          Al Buchholz
                          Bookwood Systems, LTD
                          Weekly QReportBuilder Webinars Thursday 1 pm CST

                          Occam's Razor - KISS
                          Normalize till it hurts - De-normalize till it works.
                          Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                          When we triage a problem it is much easier to read sample systems than to read a mind.
                          "Make it as simple as possible, but not simpler."
                          Albert Einstein

                          http://www.iadn.com/images/media/iadn_member.png

                          Comment


                            #14
                            Re: LQO - Ambiguous how on earth do you get this working in a grid

                            First, I had "Is Contained in" set as the search style default which was slowing things down. However, it was still slow using the set/view. So, I built a search table containing all of the info I need for searching/displaying the results grid & now it is almost instantaneous on any search field.

                            Sometimes it just doesn't pay to fight against the software.

                            Comment

                            Working...
                            X