Skip to content

Commit

Permalink
GITBOOK-70: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
doppleware authored and gitbook-bot committed Mar 20, 2024
1 parent 35b521e commit 941e813
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ description: >-
# Excessive API calls (chatty API)

<figure><img src="../../.gitbook/assets/Excessive API Calls Detected - illustration.svg" alt=""><figcaption></figcaption></figure>

### Description

Chatty APIs are numerous API calls between microservices or external services that should be optimized and reduced. A common solution is caching responses or using the API more efficiently.
9 changes: 9 additions & 0 deletions insights-documentation/insights/high-number-of-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ description: >-
# High number of queries

<figure><img src="../../.gitbook/assets/High number of queries - illustration.svg" alt=""><figcaption></figcaption></figure>

### Description

The high number of queries insight indicates that the current endpoint/consumer is triggering an abnormal number of DB queries. This can be typically resolved with caching or using more optimal queries.



###

Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ description: >-
# Query Optimization Suggested

<figure><img src="../../.gitbook/assets/Query Optimization Suggested - illustration.svg" alt=""><figcaption></figcaption></figure>

### Description

This query has been found to be especially slow compared to other queries of the same type running against the same DB. Consider optimizing this query or caching it.



Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ description: >-
# Session In View Query Detected

<figure><img src="../../.gitbook/assets/Session in View Query Detected - illustration.svg" alt=""><figcaption></figcaption></figure>

### Description

Open Session in View is an anti-pattern in which the view rendering stage triggers DB calls because of lazy properties initialization. It is recommended to pass DTOs to the view and avoid hitting the DB.

0 comments on commit 941e813

Please sign in to comment.