Is it possible to speed up the display of products grouped in a liquid?

As for now, it takes 5 seconds for a page with 20 Group products.

This is because we must first get the groupingitems by using the groupingID , then the bundled product, if we remove this less than 1 second page is rendered.

It's one of the problems I had when creating an e-commerce using liquid. It looks great to start with, but you have problems. My site makes front end fast but server-side takes forever.

The main problem for me was too much calls module_data. My site was more than 400 according to BC mainly in the loops and because not all the data could be called using a module_data as in your case. I managed to get this down and sever time reduced to 3 seconds. But there are calls that currently cannot be avoided with module_data in its current form and BC have or have had a plan for it. This plan was essentially to allow calling several resources from a module_data call reducing the calls.

In your code, there are module_data calls for each element in the loop. It's perhaps faster if possible to call the whole set (depending on the size of the game of course) and then move the loop on it. In this way, you have a call and the loop uses caching of the data that should be faster. Better yet, when BC last updated module_data this could be done by using a call, then the loop on this.

Initially I thought that reduce overall data and call only what you wanted maybe would be better but you better call more data once only unique items repeatedly. If you can get the module_data of the loop for trying. The rest that wait us for in British Colombia.

Ideally, for products, we would be able to collect all the necessary product data and only what is needed on the page in a single call to module_data. If necessary, including things like groupingitems. Then we would use liquid to extract the data from the greater whole that is now being cached.

Could this help (I have not tried. It is only theory)

Card to use on your table of {{groupingitems | map: 'id'}} and then insert into where understands them as where = "\ {'id': \ {"$dans": \ [99999,22225, 22299\] \} \} '"

Mapped table may need to be joined to the correct formatting by using {{myArray: join: ","}}

where = "\ {'id': \ {"$dans": \ [{{groupingitems |}}]}}" {{[{{map: 'id'}}------]-}}

Now run a loop on it.

I would be interest if this one works and two if it accelerates things.

Tags: Business Catalyst

Similar Questions

  • Is it possible to rank with the condition of a group?

    Is it possible to rank with the condition of a group? for example, I have following dataset.
     
    RANK() OVER (partition BY PC.POLICY_NUMBER, PC.TRANSACTION_TYPE, COV_CHG_EFF_DATE order by PC.POLICY_NUMBER, COV_CHG_EFF_DATE, PC.TIMESTAMP_ENTERED) AS RNK,
    
    POLICY_NUMBER    TRANSACTION_TYPE  COV_CHG_EFF_DATE  TIMESTAMP_ENTERED                        Rank
    10531075PQ                           01           01/FEB/2009              15/SEP/2009 01:16:09.356663 AM       1
    10531075PQ                           01           01/FEB/2009              15/SEP/2009 01:16:09.387784 AM       2
    10531075PQ                           02           15/OCT/2009             16/OCT/2009 04:40:24.564928 PM       1
    10531075PQ                           02           15/OCT/2009             16/OCT/2009 04:40:24.678118 PM       2
    10531075PQ                           10           15/OCT/2009             16/OCT/2009 04:45:20.290117 PM       1
    10531075PQ                           10           15/OCT/2009             16/OCT/2009 04:40:29.088737 PM       2
    10531075PQ                           09           15/OCT/2009             16/OCT/2009 04:40:29.088737 PM       1 (expected 3)
    10531075PQ                           06           17/OCT/2009             17/OCT/2009 04:45:20.290117 PM       1
    10531075PQ                           07           17/OCT/2009             17/OCT/2009 04:40:29.088737 PM       1 (expected 2)
    I want to group founded by transaction ID. For ex, '09 'and '10' as a game and ' 06' one '07' as another set. Instead of the beginning rank, rank I want continue for any occurrence of the ' 09 'or ' 10'. In the example above, for the next line, I expect to grade 3 that there are transaction 2 '10' already exist for the same COV_CHG_EFF_DATE.

    09 10531075PQ October 15, 2009 October 16, 2009 04:40:29.088737 PM 1 (3 planned)

    I wonder if it's possible with the rank or another another analytic function. Not looking for exact labour code, I will appreciate if someone can give me idea/advice. Example of table and the test data, if someone wants to experience
     
    drop table PC_COVKEY_PD;
    
    create table PC_COVKEY_PD (
    POLICY_NUMBER varchar(30),
    TERM_IDENT varchar(3),
    COVERAGE_NUMBER varchar(3),
    TRANSACTION_TYPE varchar(3),
    COV_CHG_EFF_DATE date,
    TIMESTAMP_ENTERED timestamp
    );
    
    delete from PC_COVKEY_PD;
    
    commit;
    
    insert into PC_COVKEY_PD values ('10531075PQ', '021', '002', '01', to_date('01/FEB/2009','DD/MM/YYYY'), cast('15/SEP/2009 01:16:09.356663 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10531075PQ', '021', '001', '01', to_date('01/FEB/2009','DD/MM/YYYY'), cast('15/SEP/2009 01:16:09.387784 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10531075PQ', '021', '004', '02', to_date('15/OCT/2009','DD/MM/YYYY'), cast('16/OCT/2009 04:40:24.164928 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10531075PQ', '021', '004', '02', to_date('15/OCT/2009','DD/MM/YYYY'), cast('16/OCT/2009 04:40:24.264928 PM' as timestamp));
    insert into PC_COVKEY_PD values ( '10531075PQ', '021', '005', '10', to_date('15/OCT/2009','DD/MM/YYYY'), cast('16/OCT/2009 04:40:24.364928 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10531075PQ', '021', '002', '10', to_date('15/OCT/2009','DD/MM/YYYY'), cast('16/OCT/2009 04:40:24.464928 PM' as timestamp));
    insert into PC_COVKEY_PD values ( '10531075PQ', '021', '004', '09', to_date('15/OCT/2009','DD/MM/YYYY'), cast('16/OCT/2009 04:40:24.564928 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10531075PQ', '021', '004', '06', to_date('22/NOV/2011','DD/MM/YYYY'), cast('17/OCT/2009 04:40:24.564928 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10531075PQ', '021', '004', '07', to_date('22/NOV/2011','DD/MM/YYYY'), cast('17/OCT/2009 04:40:24.664928 PM' as timestamp));
    
    commit;
    
    SELECT POLICY_NUMBER,
           TERM_IDENT,
           COVERAGE_NUMBER,
           TRANSACTION_TYPE,
           COV_CHG_EFF_DATE,
           TIMESTAMP_ENTERED,
            RANK() OVER (partition BY PC.POLICY_NUMBER, PC.TERM_IDENT, PC.TRANSACTION_TYPE, PC.COV_CHG_EFF_DATE 
                    order by PC.POLICY_NUMBER, PC.TERM_IDENT, PC.COV_CHG_EFF_DATE, PC.TIMESTAMP_ENTERED) AS RNK
    FROM PC_COVKEY_PD PC
    ORDER BY PC.POLICY_NUMBER, PC.TERM_IDENT, PC.COV_CHG_EFF_DATE, PC.TIMESTAMP_ENTERED ;
    Published by: 966820 on October 30, 2012 19:26
  • Interactive reports: how to change the display mode (details, group by, chart, pivot) programmatically?

    Hi guys,.

    is it possible to control the display mode of the interactive reports, i.e. display icon, list, view detail, group by, chart, pivot?

    Produkte.png

    As I understand the current setting is stored as a preference of the user for each user... and again when his connection. A settings of the rules them all (all the stored report parameters).

    The display mode switchable using a javascript, the api package apex_ir or via a link?

    Thank you
    ~ Dietmar.

    Hi Dietmar,

    It is not a supported way to change the display interactive report mode.  With the device connected by Anthony internally, we will consider adding this because part of apex_ir or a link to the future.

    Kind regards

    Christina

  • Change the display time for grouped objects

    Hello, I have problems to change the display time for the grouped items. I use 7 Captivate and I love how now grouped items display only as an element in the timeline because it reduces the number of lines visiblein the chronology for each object on a slide. However, now that the grouped objects is more individually appear in the timeline panel, I can't see all the adjustments for group objects together.

    If someone else has had this problem and is there a work around? My main problem is that if I need to extend or shorten the audio to the slide, and I assigned a tip action to be grouped in order to adjust the grouped object to match the audio, I must now separate adjust, regroup, then reset the advanced action by using the name of the new group. It's frustrating and tedious.

    To enlarge and view the items grouped on the timeline, you need to click the arrow next to the group name. Once you develop, you can select the individual object and adjust the timings.

    Alternatively, you can select the individual object in the Group on the slide and adjust the timing of the accordion of timing. You can do it without separate.

    Anthony

  • "The speed of the CPU 0 in group 0 is restricted by the system firmware."

    Hello!

    My computer has recently been very slow. I tried to format and reinstall, but it did not help. When I checked the system event log, I saw this warning message repeatedly:

    Microsoft-Windows-Kernel-Processor-Power
    37
    Warning!
    The speed of processor 0 in group 0 is being limited by system firmware. The processor has been in this reduced performance state for X seconds since the last report.
    

    My CPU time are OK, and I've updated the drivers and BIOS. All power saving settings are set for maximum performance. Does anyone know what causes this problem and how it is fixed?

    Model: Pavilion DV7 6010so

    CPU: AMD Turion Dual-Core processor P560

    OS: Windows 7 Home Premium

    EDIT: According to the performance test PassMark, my CPU performance is one-third of the exception. There is definitely something wrong.

    I do not have the main function of parking in any case, it's Intel only, I guess.

    With the help of AMD Overdrive didn't completely solve the problem, as something of force multiplier to 4 a few minutes after changing. I thought it had to be a kind of BIOS-side power save "feature", but the official BIOS of HP sucks and it is not all the options related to it. I installed the modded BIOS (it's risky, I know), disabled AMD Cool ' silent mode and now sticks to 12.5 x multiplier.

    Pretty weird, huh? Cool ' Quiet is supposed to increase multiplier when necessary and lower it when the computer is idle, but for some reason it has stopped working properly a few months ago and stuck the multiplier to 4 x.

  • Is it possible to move all the contents as a group in a flash document?

    I started creating a website in Flash and made a considerable amount of work when I realized that I needed everything I did move to a different location (above) in my document. I don't want to just start over and recreate all so I wonder if it is possible to move all (keyframe, groups, layers, all) together as a group to another location in the document? I need actually just my smaller document, but I need the space removed from the top of the document and not from below, so I can't just change document settings (because that will remove only pixels from the bottom)

    Is it possible to move all or remove the space from the top of the document?

    Any advice will be VERY useful! Thank you!

    What you might try is to copy everything in a movieclip and then move as needed.  By using the right click menu on the timeline, you can copy a whole chronology after selecting it and then paste it into an empty timeline.

  • The speed of the CPU 0 in group 0 is restricted by the system firmware. The processor is in this state of reduced performance for 71 seconds since the last report.

    Kernel-processor-power of the source; Event ID 37

    What is this deposit is and how to fix it?

    It's a really unpleasant to receive sorta message.   ;-(

    This thread shed light on your situation?

    http://social.answers.Microsoft.com/forums/en-us/w7install/thread/0326f8e8-4146-4961-8bf6-bab6a2661155 All the answers and suggestions are provided by an enthusiastic amateur and are therefore no explicit or implicit guarantee. Basically, you use my suggestions at your own risk.

  • The speed of the CPU 0 in group 0 is restricted by the system firmware. The processor has been in this state of reduced performance for 4 seconds since the last report.

    Log of the event viewer shows in administrative events just before my laptop computer stops while playing games. It is due to overheating because it is right, it started happening 2 weeks ago.

    Overheating is the likely cause.

    Use a can of compressed gas to clean ventilation openings. If the laptop can be opened easily, clean it inside as well. Make sure that the ventilation openings are not blocked when you use it.

  • How to speed up the rendering of JavaScript annotations?

    Hello

    I use JavaScript to create annotations about 30 on a PDF page. I then use the property of true/false .hidden to hide/show the annotations.  I'm hide or view annotations, it must be 4 seconds so that changes occur, either for the hidden annotations become visible visible annotations to hide.  The JavaScript code that changes the visibility is triggered by a mouse on a button click event.

    I couldn't cope with the slow if 30 annotations becomes visible or invisible in order that the user watched.  However, there is absolutely no change for 4 seconds then all 30 annotations change simultaneously visible or invisible, according to the current state.  Because nothing is happening for 4 seconds, users often think that the click of a button is not respected and click the button again.

    Is it possible to speed up the rendering of the annotations?  Or y at - there a way to force changes in annotations to be displayed individually each .hidden property is changed?  Once again, at the present time, nothing changes on the monitor until all 30 annotations have been changed and then all the changes appear at the same time.  The time of rendering, measured at 4 seconds, you mad my users!

    Thanks for any idea that someone has!

    Dave

    There could be several reasons for this:

    1. your code is not effective. If post you it here, we could have a look on

    and see if it can be improved.

    2. hardware your computers is not up-to-date.

    3 acrobat/Reader is simply slow.

    Another thing to consider is using some kind of progress bar to let your

    users know that the action takes place, so that they are eager

    During these 4 seconds. There is an object embedded in Acrobat/Reader that can

    do exactly that. Look at the thermometer object.

  • Speed up the revision of the app

    I submitted a request Thursday to the World Bank for blackberry. Due to an upcoming event, I need to get the approval of the application as soon as possible. Is it possible to speed up the time of the review?

    My application was approved early in the morning Monday last week!

  • How to subtract the share of products in a PivotTable

    Hello
    I have a union report consists of two reports. Columns in the reports are produced Group(PG1 and PG2 respectively), Segment name, store number, spend, spend (spend 2 columns).
    In PivotTable, we have the name of the Segment in the rows, the product group in the columns and spend them in the action. So finally I need a way to subtract each share of expenditures with PG1 PG2.

    For example,.
    I have 3 segments of 2 groups of products with expenses
    PG1 PG2 action1, action2
    20 GOLD 15 14,28% 17,64%
    40 25 28,57% 29.41% MONEY
    BRONZE 80 45 57,14% 52,94%

    Now I need another column with the values (action1 - action2)

    Please let us know your suggestions.

    In your analysis, I would probably remove the column of product group and instead your measurements as 'PG 1 Sales', 'PG 2 Sales', 'PG 1 Share', 'PG 2 Share' and add your new column "Diff Share".

    Formula for "1 PG sales" would be something like: FILTER ("Fact". "With the HELP of sales' ('Product'". ")" Product group"=" Group 1 ")).
    Formula for "PG 2 Sales" would be something like: FILTER ("Fact". "With the HELP of sales' ('Product'". ")" Product group"=" group 2 ")).
    Then the diff could be something like the formula 1 formula 2.

    It's a bit hard to describe but easy to do. Please contact me a [email protected] if you want additional assistance (for example, I could send screenshots of a similar report and how to work the formulas).

    THX,
    Scott

  • Is it possible to edit Firefox context menu to the standard address for the displayed Web pages?

    Is it possible to edit Firefox context menu to the standard address for the displayed Web pages? Often, I want to save an image on a page. Sometimes I "slip" and press "Send Image" when I want to "Save Image under" and sit and wait for the default page - send an email to come, then shut up, juggling its dialog boxes "are you sure". It is a way of trying to manage a blunder. Basically I want an element directly from a page by email. Is it possible that I can simply remove "Send Image" from the context menu?

    It is possible with the Menu Editor extension:

    https://addons.Mozilla.org/en-us/Firefox/addon/710

  • J3Z14PA #ABG: is it possible to change the display on HP Envy 15 Q004TX Panel

    The laptop has initially complete 720 p. is it possible to change the Panel of slab IPS 1080 p? It's touchsmart

    and what is the display for q004tx part number?

    Kind regards

    Hello

    I don't know why your machine has full 720 p. Anyway, please try the 3rd page of manual, 47 of the following link:

    http://support.HP.com/us-en/product/HP-envy-15-notebook-PC-series/6936209/model/7169946/manuals/

    and expect to pay about $590 to the next shop for the part of the fist on the list:

    http://www.Amazon.com/HP-788475-001-15-6-inch-display/DP/B00PDD345C

    Kind regards.

  • Possibility to get a popup to display the display value "" and not the "return value".

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    Concerning

    Ben

    Benton says:

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    See limiting the number of values in a LOV

    If it comes to a page element, and then change the type of Popup LOV key.

    If there is a control in a table, it's another reason to upgrade to a supported version, or the tabular form will need to be converted to be manually generated and processed in order to allow the appropriate control be returned using the apex_item.popupkey_from_lov method

  • Is it possible to lock the display on a PDF file for other users?

    I created a PDF form with an attachment. Is it possible to lock the display list is attached, so that when the form is sent to others, they will automatically see the attachments?

    Evergreen Environmental salvation,

    One option is to put on the first page of the PDF to view the attachments Panel:

    1. Choose file > properties.
    2. Click the initial view tab.
    3. Choose the attachments Panel and Page from the context menu of the Navigation tab.
    4. Click OK.

    Let us know how it works for you!

    Best,

    Sara

Maybe you are looking for

  • Noob question: screenshots

    On Vista 64 after having taken a screenshot where is it stored in default? I "googled" the Clipboard without result. This is not an emergency, just an annoyance. Thanks in advance.

  • iPad Pro as a new device with its own distinction in my iCloud

    I'll put up my iPad Pro as an additional device.   When I try to add the iPad Pro to my iCloud OR as a supplementary device, the iPad Pro is "named" iPad Air.   I want that there is a distinction between my iPad Air and my iPad Pro in the same way as

  • Trap of HP monitor

    What is trap of HP monitor and do I need? I have an Officejet 6500 a and a Pro 8000, both on a wired network (the 6500 is connected only, the 8000 is wireless, but I couldn't get it configured if just plugged). All Mac (2) network are running OS 10.6

  • SP 1 or SP 2

    do I need to install the two SP 1 and SP 2 or can I just install SP 2

  • Where can I get a drive for my Gestetner DSm651?

    Just bought laptop Dell Latitude E5520, running under Windows 7 64-bit.  Where can I get the driver for our Gestetner DSm651 Copier? Catalog MS does not seem to be it.  The driver file that I downloaded from the Web of Ricoh site doesn't seem to work