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

faster query results than with cross level

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

    faster query results than with cross level

    As posted in an earlier thread, I have been trying to accomplish a cross level search on a form based on a set. I was successful in getting the search to return the proper results, however, it takes way tooooooooooo long.

    The set has 26 linked aliases in it, and it appears that the cross level is going through every single record in every single instance of the table alias included in the set.

    The various aliases are there for the sole purpose of flexibility in various display options for the client. The data in the alias tables is not any different than the data in the actual table.

    The parent table in the set has 3630 records, the grandchild that I am searching on has 11663 records. There are approximately 30000 records in the remaining 9 tables. There is a total of 11 'real' tables in the set with an additional 15 aliases.

    Searching on less than 50k records in a set should not take as much as 3 minutes to run. The only indexes available are those of the parent table. Please tell me there is a 'faster' way, much faster way to search on a city in a grandchild table and return all matching records in my set based form.

    I have tried various query methods, but the only one to return the proper results is the cross level.
    Cheryl
    #1 Designs By Pagecrazy
    http://pagecrazy.com/

    #2
    Re: faster query results than with cross level

    Cheryl:
    You need to run the query on a reverse set.

    Comment


      #3
      Re: faster query results than with cross level

      Thanks but that does not resolve the issue. The master set form needs to be loaded with the query results. Using a reverse set to run the query on would work great in that set ..... but I would then have to resynch my master set form with that query which will take the same amount of time. Your idea adds an additional step.

      I need a faster query option that does not run through 155,000 records (every instance of every table in the set whether needed or not) when it only needs to run through 15,000 records.
      Cheryl
      #1 Designs By Pagecrazy
      http://pagecrazy.com/

      Comment


        #4
        Re: faster query results than with cross level

        but I would then have to resynch my master set form with that query which will take the same amount of time.
        No...
        make the parent a child to the child (thus have a reverse set within the original set).

        When you run the query on the reverse set i.e. on the child, it will show the records of the child and it's linked grand child, which is also the parent! and the original set will be filtered to the grandchild (the parent). In essence, you will turn the set inside out and run the query on the child.

        BTW, the aliases in the set is why it's taking so long. If you can, by all means get rid of them, not to mention, aliases are always fraught with trouble. I am surprised your program does not hang! you must have a large RAM.

        Comment


          #5
          Re: faster query results than with cross level

          Originally posted by G Gabriel View Post
          you must have a large RAM.
          Maybe she does and maybe she doesn't but is not proper for a gentleman to comment on a lady's RAM.
          There can be only one.

          Comment


            #6
            Re: faster query results than with cross level

            Removing the aliases is not an option. I am completely aware that the delay is caused because of the aliases. I am trying to find a way to run the query without having to run it cross level.

            The reverse set is a nice idea, but I would have to completely create a 'new' set because adding to the existing set as you described does not work, alpha keeps breaking it. Fortunately I tested this with a copy so I did not lose my months worth of work on the set. Alpha tries to re-number the aliases from top to bottom and chokes on itself cuz it can no longer find them.

            I am not sure the time it would take me to re-create the set and its form is worth the time or trouble, without knowing that it will in fact work.
            Cheryl
            #1 Designs By Pagecrazy
            http://pagecrazy.com/

            Comment


              #7
              Re: faster query results than with cross level

              Cheryl:
              I don't know how big this set is, but again, I am not in favor of aliases anyway. What you might want to do, is call another form that is based on the reverse set and the reverse set could be a very simple one, one parent and one child.

              Stan:
              Step out of the saloon and let's us settle this the old fashion way!

              Comment


                #8
                Re: faster query results than with cross level

                Actually Gabe, you obviously downloaded my sample so you should be able to see the size of the set.

                I did take your advise and create a new reverse set that includes my 'grandchild' as the parent with a one to one link to the child and then the parent.

                This does provide for a much faster search result return. I am then using the OnRowDbleClick event of the embedded browse on the search form to capture the Carrier Company Name and load that single record in my master set.

                If the client needs to view the other data, insurance info, phone numbers, notes, etc, etc, etc, they will have to use the 1-3 minute search on the master set based form.

                Unless somebody else can point me in the direction of being able to do my search on the master set form without searching all the records in all the alias linked tables in the set via cross level :)
                Cheryl
                #1 Designs By Pagecrazy
                http://pagecrazy.com/

                Comment


                  #9
                  Re: faster query results than with cross level

                  Cheryl:
                  I had discarded that file thinking that thread was settled. I re-downloaded it: it certainly is a BIG set and I can not offer any intelligent suggestions regarding the aliases not knowing what are your objectives.

                  Asides from that set and the aliases, and re-reading your other thread:
                  a-you wanted the "the keylist_build() approach." and
                  b-as you suggest in this thread, you are looking for a faster query without using a reverse set.

                  The attached zip file will do that, but I cannot guarantee the speed since it has only few records. But it certainly does not take any time at all.
                  Last edited by G Gabriel; 05-11-2007, 05:17 AM.

                  Comment


                    #10
                    Re: faster query results than with cross level

                    Thanks Gabe. I tried what you suggested in your sample, it is no faster ... it is still using a cross level query which is what is slowing down the process.

                    Thanks anyway.
                    Cheryl
                    #1 Designs By Pagecrazy
                    http://pagecrazy.com/

                    Comment

                    Working...
                    X