Monitor Performance Flashcards

1
Q

What are 4 notable causes of front end performance problems?

A
  • Too much on the home page
  • Large Images
  • Large Javascript Libraries
  • Too Many Fonts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a cache?

A

A cache is a high-speed data storage layer which stores a subset of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does eTag caching improve performance

A

This option is used to determine the state of an API request on the server so if a subsequent request is made, it will return a status 304 (not modified) indicating that the data has not changed. This prevents the server from having to recalculate the data for the API request.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What considerations does a developer need to take into account when using the cache manager?

A
  • How frequently the cached data changes.
  • How much data is stored in the cache (to prevent automatic cache eviction).
  • How long the cache should live vs the cost of reloading.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the shared (distributed) cache primarily used for?

A

Real time inventory and pricing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the layers of the shared (distributed) cache ?

A

Local (in memory on server) > shared cache (in sql or redis)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or False: Session state is used to store the InsiteCacheId. This InsiteCacheId GUID is then referenced in the cookie to retrieve the Shopping Cart.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When locally monitoring db calls what is a good rule of thumb for how long a “suspicious” query takes?

A

300ms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are some strategies to help reduce table scans when using LINQ?

A
  • Writing direct SQL queries (instead of LINQ)
  • Creating a stored procedure.
  • Creating a supporting table with the data you need
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are two convience methods available to improve DB performance when using LINQ queries?

A
  • GetTableAsNoTracking
  • WhereContains
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which Products API is used in the classic CMS?

A

Products V1 This is less performant because it leverages the search data less and is built with less efficient stored procs for gathering related product information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Name 3 changes that can improve the performance of products on the site?

A
  1. Limit the number of entries in any given cross-sell/accessory/related product widget
  2. Reduce the default page limit on product list pages
  3. Keep the number of traits on product variants low (between 2-4)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How are custom properties stored in the database?

A

Each one is represented in the database as a name/value pair

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which entity is likely to have the greatest performance degregation from adding a custom property?

A

Product

For most entities, the system is not constantly reading different data so retrieving, say, 50 custom properties for a customer is likely not going to be a problem. Take those 50 properties to the Product or Category tables, for example, you will likely have some performance concerns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are two approaches to add additional information to products without using custom properties (to avoid performance issues)?

A
  • Alter the ProductCollection pipeline to only retrieve those properties you actually need
  • Use a custom table for the product instead of custom properties
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does the “Show Attributes On Search” affect performance?

A

The list of attribute facet checkboxes on a search results page can be extremely long which can result in slower front-end performance.

17
Q

Do inactive promotions affect performance?

A

No only active promotions are checked.

18
Q

True or False: Having the “Allow Multiple Promotions” set to “OFF” is recomended to imporve promotions performance?

A

False

This setting only applies to order promotions so it helps performance very little because all lines still must be checked.

19
Q

Would having 12 concurrent promotions present a significant performance obstacle?

A

No

Having 10 or 15 active promotions should not be an issue, but having several hundred would be aproblem.

20
Q

Does having multiple languages active impact performance?

A

Generally no.

It does not impact site performance, but has a large impact on elastic indexing as each language effectively has a seperate index.

21
Q

If the ERP requires a seperate API call for each product what can be done to minimize the performance hit?

A

Use a refresh job for the inventory and only use real time for pricing.

22
Q

True or False - The Products V2 API requires real time pricing and inventory for performance reasons?

A

True

23
Q

True or False - Disabling translations if you do not use them improves performance.

A

True

24
Q

True or False - Empty translation records have no impact on system performance?

A

False

f you have multiple languages and use the Generate Records option in the Admin Console, the system will create many empty records which can slow down the system.