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

Speed of List control vs Grid ...

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

    Speed of List control vs Grid ...

    I am working on a mobile app and using ux components with List controls. It seems to me that the grid is actually a lot faster in loading and displaying a list of data. I understand that there are many advantages of the ux with a List control, with many more features, not the least of which is the ux is more mobile responsive, has panels, and many, many more features. However, the speed issue is significant. I wonder if I am doing something wrong.

    To test this, I created a simple grid and simple ux with list control, using the following simple query:

    SELECT date,time
    FROM appointments
    WHERE date = curdate()

    This query retrieves just 12 records and the results from Live full preview are:

    grid: 4 to 5 seconds

    ux with List control: 8 seconds

    Is there something I am missing? I would welcome any comments or suggestions.
    Gary S. Traub, Ph.D.


    #2
    Convert your case to use Northwind, then share the two components and I let you know.
    The order of events in a UX is important so are some of the tweeks.

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

    Comment


      #3
      Hi Pete,

      Thanks for responding. I am trying to do as you asked, but when I create a connection string to Northwind, I get this error message: "The operating system is not presently configured to run this application"

      I have never seen this error message before and do not know what to do.
      Gary S. Traub, Ph.D.

      Comment


        #4
        It's ok i'll do it and see. You may want to ask about thet error.
        Insanity: doing the same thing over and over again and expecting different results.
        Albert Einstein, (attributed)
        US (German-born) physicist (1879 - 1955)

        Comment


          #5
          Yeah , interesting. The same error appeared during the wednesday webinar for dion during his presentation I beleive. Regardless of that error it will be interesting to see which loads faster and why. I think a list pulling from a view can be very fast and I think it also breaks down into the number of controls being rendered...
          NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

          Comment


            #6
            Thanks Pete. I look forward to your insights.

            Hi Charles - In my test, I used a very basic grid with just 2 fields, and no detail view or search part; and the ux had just the list control pulling the same 2 fields with no other controls. I did this test because as I build the mobile app, the list control seems slow - grids seem much faster, but of course, the grids are not ideal for mobile as they are not responsive at all and I would assume are more memory intensive.
            Gary S. Traub, Ph.D.

            Comment


              #7
              Have you looked at chromes dev tools to see what's taking twice as long to render?
              NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

              Comment


                #8
                Regardless of which way you choose, those times seem way too long for the number of records being returned. In the sql table, do you have an index on date?
                Pat Bremkamp
                MindKicks Consulting

                Comment


                  #9
                  hi Pat,

                  Yes indeed. The actual grid and ux are quicker than those times, but the grid is faster than the list control. The test was done from live preview. The relative difference is what I am trying to illustrate. Is this not consistent with your experience, i.e, lists are faster than grids for you?
                  Gary S. Traub, Ph.D.

                  Comment


                    #10
                    In my experience with a table with a couple million records, the grid is much faster unless you set limits on the list. So for example, all else being equal, if I limit the list to the top 50 records which often contains the data I want, it is as fast or faster. At 200 records it is slower..
                    Pat Bremkamp
                    MindKicks Consulting

                    Comment


                      #11
                      Thanks for that information Pat.

                      I limit my lists to initially retrieve 20 records (via pagination) and they are still significantly slower than a grid. The initial load time is okay, but when you go page to page, or add a server side search to the list, or a server-side column sort, it is very slow. In one case, where the database is dealing with just 4,000 records, the list control takes 20 seconds to perform a search, where the grid takes one second. So, what is the solution?

                      Is there a reason why I should not use grids in a mobile app that is designed for phones not tablets. I test the app on both an android s10 (large screen) and a small screen iphone to be sure everything fits nicely. I have some modules that I have designed with grids and others that I have designed with List controls, and the grids work better. Should I not pursue grids? Is there a memory issue with the grids? Does the dom get overloaded more with the grid than with a ux/list control? Are there are other issues that I should consider?
                      Last edited by drgarytraub; 09-21-2020, 03:01 PM.
                      Gary S. Traub, Ph.D.

                      Comment


                        #12
                        This Video explains it.

                        https://www.screencast.com/t/B8HpLIbRRO

                        Re the DOM question, well it does, but so does the Viewbox over the List Control . It's important the choose carefully between them, you need to let go of the grid.
                        Last edited by peteconway; 09-22-2020, 07:02 AM.
                        Insanity: doing the same thing over and over again and expecting different results.
                        Albert Einstein, (attributed)
                        US (German-born) physicist (1879 - 1955)

                        Comment


                          #13
                          I think the question of speed should be addressed by ONLY pulling the information that you need using a view if possible. Views in general can be setup to be much leaner and faster than the whole table, and since you can include the pk you can then use that to tie in all of the other related information with arguments or variables. Alpha's addition of GraphQL can make the presentation even faster, so if you are after the fastest ONLINE web application I would look into those two things. Rounding it out with responsive rules and multiple list layouts for portrait devies and I think you will find that speed is extremely fast and with light components you might think it was using local storage! I would also avoid the use of the tabbedUI even though it is a pretty fast way to get an application launched. The extra time spent building a tabbedUI using a UX is much better approach.
                          NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                          Comment


                            #14
                            I still think something is wrong to take 20 seconds based on how you describe the setup. If you want, we can have an on-line session and I'd be happy to take a quick look.
                            Pat Bremkamp
                            MindKicks Consulting

                            Comment


                              #15
                              I agree, a simple query with a few records should be lightening fast irrespective of the 2 choices here...
                              NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                              Comment

                              Working...
                              X