Skip to content

Commit

Permalink
W-16620689 Add md files for [LWC Auth Debug] LSP to reduce OOM issues…
Browse files Browse the repository at this point in the history
… story (#165)
  • Loading branch information
clivewong authored Dec 10, 2024
1 parent 7e8ea0a commit 09402f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lsp/docs/adapters-local-change-not-aware.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# adapters-local-change-not-aware

The wire adapters `getRelatedListRecords` and `getRelatedListCount` work with records while offline. However, those wire adapters won't update the related list to add or remove records that are created or deleted while offline.

As an alternative to using `getRelatedListRecords`, use GraphQL to create a related list that supports records that are created or deleted while offline.

Currently, there isn't a GraphQL equivalent to `getRelatedListCount` that works offline.

See [Parent-to-Child Relationships](https://developer.salesforce.com/docs/platform/graphql/guide/filter-parent.html#parent-to-child-relationships) in the GraphQL API Developer Guide for more details.
9 changes: 9 additions & 0 deletions src/lsp/docs/over-sized-record.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# over-sized-record

Creating queries that request a large number of fields or large size fields could result in large data sizes (32 KB) that negatively affect mobile app performance, and potentially result in fewer returned records than expected.

To prevent potential performance issues:
- Modify your query to request fewer than 100 fields.
- Avoid requesting Base 64-encoded fields.
- Avoid requesting 5 text area fields.
- Avoid requesting related lists.

0 comments on commit 09402f8

Please sign in to comment.