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

Large UX runs way too slow

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

    Large UX runs way too slow

    I've discussed this here before and got some feedback but I still suffer from seriously slow loading times. I'm at the end of my rope!

    SQL backend. Web app (not mobile). I have a UX with about 100+ controls, mostly text boxes (the UX is displayed on an A5W page). Also within this UX are five repeating sections (each with a handful of text controls) and four embedded grids (live linked). The UX is populated by a list control. The list control only loads about 20 rows at a time (data pagination, auto fetch). There is no security in the UX controls. The UX is organized with a tab control, five tab panes, and various containers/frames. There are no xbasic functions or other coding in the server/client side events.

    On my live site the UX takes approx. 35 seconds to render. Once it has rendered it works quite well. This initial long loading time is costing me clients. The web app is basically all data entry and the clients don't want all sorts of buttons and pop-up windows or different pages to navigate through for the various areas of the program.

    Firebug says that it's the A5W page that is taking all this time. My A5W page as the UX, a navigation component (five buttons), and two small xbasic scripts that display a couple of session variables. I know it's the UX that takes forever to load because if I remove it from the page the page loads nearly instantly. I don't know what to do now.
    Mike Brown - Contact Me
    Programmatic Technologies, LLC
    Programmatic-Technologies.com
    Independent Developer & Consultant​​

    #2
    Re: Large UX runs way too slow

    Well, you already know the answer: You need to figure out how to break this into smaller pieces and load what's needed when it's needed -- not all at once, up front. Yup, it may take some design re-think. But that's a load for sure, esp. the 4 linked grids.

    My approach for this kind of thing is that no user is going to need/use/view/work with every one of those pieces at the same time, despite what anyone says. So, figure out what they need first, then find ways to load the rest as needed.

    After all the work you've put into this to make what you have, it's a tough decision to go back a few steps and actually decide to re-organize, but it sounds like that's in order.

    Without seeing it all, I'd start with the live-linked grids and see if you can off-load them. Indeed, save your UX as MyUXTest2 or something like that, take out the grids, publish the result and see how much of a difference that makes. Start by removing the most obvious things, test, rinse and repeat. Again though: start with those grids.
    -Steve
    sigpic

    Comment


      #3
      Re: Large UX runs way too slow

      I sped up a UX from from 6 seconds load time down to 2 seconds load time by moving embedded grids onto separate Panel Cards
      and for each embedded object control (grid component),
      set the Embedded Object properties to
      - Show Mode: When page is loaded
      - Delay render till visible: true

      One grid (one panel card) is shown upon opening the UX.

      I have a List that looks like "tabs" which trigger navigation to another Panel Card (containing embedded grid) and each embedded grid is only loaded when shown the first time (i.e. when that panel card is navigated and becomes visible)

      ListControlAsTabsWithEmbeddedGridsOnPanelCards.png

      Comment


        #4
        Re: Large UX runs way too slow

        Originally posted by mikeallenbrown View Post
        I've discussed this here before and got some feedback but I still suffer from seriously slow loading times. I'm at the end of my rope!

        SQL backend. Web app (not mobile). I have a UX with about 100+ controls, mostly text boxes (the UX is displayed on an A5W page). Also within this UX are five repeating sections (each with a handful of text controls) and four embedded grids (live linked). The UX is populated by a list control. The list control only loads about 20 rows at a time (data pagination, auto fetch). There is no security in the UX controls. The UX is organized with a tab control, five tab panes, and various containers/frames. There are no xbasic functions or other coding in the server/client side events.

        On my live site the UX takes approx. 35 seconds to render. Once it has rendered it works quite well. This initial long loading time is costing me clients. The web app is basically all data entry and the clients don't want all sorts of buttons and pop-up windows or different pages to navigate through for the various areas of the program.

        Firebug says that it's the A5W page that is taking all this time. My A5W page as the UX, a navigation component (five buttons), and two small xbasic scripts that display a couple of session variables. I know it's the UX that takes forever to load because if I remove it from the page the page loads nearly instantly. I don't know what to do now.
        the main reason for slow loading of a web page is that the browser has to calculate where to put all the controls in relation to all other controls especially involving tables and images. these are typically declared without any specific width and height dimensions. the browser has to calculate and go back redo the calculation before it renders the whole page.
        once the calculation is done and page is rendered browser uses what in cache to tweak a little to re-render. hence the second time on it is faster.

        you need to go back and take a look at how to render the page if your were the browser.
        first break the top part, the one with the portion up to navigation part, into a segment and include in the new page if you have not done that already.
        then look at all the grids and repeating sections see if you could assign width and height. (any thing that is a table format)
        if you are able to break your ux into smaller fragments then load them as needed.

        regardless what you do you will need to follow what steve said "rethink and redesign" if you want to speedup the loading time

        in addition if you post a screencast of what you have and how it displays then someone will be able to pin point where to tweak or adjust.
        thanks for reading

        gandhi

        version 11 3381 - 4096
        mysql backend
        http://www.alphawebprogramming.blogspot.com
        [email protected]
        Skype:[email protected]
        1 914 924 5171

        Comment


          #5
          Re: Large UX runs way too slow

          Thanks all. My app is for desktops, however, not for mobile devices. Panel cards are only for mobile devices I thought.
          Mike Brown - Contact Me
          Programmatic Technologies, LLC
          Programmatic-Technologies.com
          Independent Developer & Consultant​​

          Comment


            #6
            Re: Large UX runs way too slow

            If you are running in a browser then you can use panel cards

            Comment


              #7
              Re: Large UX runs way too slow

              Update: Turns out my biggest problem was the servers SQL and Alpha were running on. I upgraded to better ones and the time that it takes to load my UX improved 50-60%. Further tweaks to the UX itself and it'll be running even faster.

              Thanks all for your help.
              Mike Brown - Contact Me
              Programmatic Technologies, LLC
              Programmatic-Technologies.com
              Independent Developer & Consultant​​

              Comment


                #8
                Re: Large UX runs way too slow

                Good to hear. I moved from another service to Zebrahost a while ago and never looked back - very visible difference in performance.
                -Steve
                sigpic

                Comment


                  #9
                  Re: Large UX runs way too slow

                  Thanks for the Zebrahost tip. I was debating and looking for the best way to go forward.

                  Comment


                    #10
                    Re: Large UX runs way too slow

                    Hi Deb. Good to see you here, glad to know you're onto v12; you know I'd never (knowingly) point you wrong.
                    -Steve
                    sigpic

                    Comment


                      #11
                      Re: Large UX runs way too slow

                      Hi, Steve. It's good to be back. I think v12 may be just what I need at this point in time, and I'm looking forward to reading your expert posts!

                      Comment


                        #12
                        Re: Large UX runs way too slow

                        Just as an addition on this topic I had a complex UX that was databound and taking approx. 14 seconds to open. The UX used tabs.

                        I replaced the tabs with Panels and used the Tabbed Band navigation method. I also took some of the more complex portions of the form and converted them to free form layout containers.

                        I have repeating sections on the form that are just lists of child records and I'd hoped to replace those with unbound list controls but I found that the list controls wouldn't refresh when using the Cached Component option on the grid button that opens the UX. A shame but caching the component and setting the option to open the UX component in the same window generates a huge savings in opening subsequent instances of the UX form.

                        I set the options in the UX properties to Compute Data Binding at run time and Compute Panel Layout and now the form opens in approximately 4 seconds with the exact same functionality. When opening additional instances of the same form the window opens in under 2 seconds!

                        The only problem thus far that I've not been able to get around is that when using Panels in a popup window UX component on the desktop I always have up/down and left/right scrollers on the window frame no matter how I size the layout of the UX component and no matter how large I specify the window to be when I open it (or if I leave the sizes blank which should open the window to fit the UX contents.)

                        It takes a lot of work to fully optimize complex forms but the end results are worth the time spent.
                        Brad Weaver, President
                        ComputerAid International
                        Ottawa ON Canada
                        Versailles KY USA
                        www.compuaid.com

                        Comment

                        Working...
                        X