From 09402f887b277c8775159feb2b5aeb660fa98ca5 Mon Sep 17 00:00:00 2001 From: Clive Wong Date: Tue, 10 Dec 2024 13:11:37 -0800 Subject: [PATCH] W-16620689 Add md files for [LWC Auth Debug] LSP to reduce OOM issues story (#165) --- src/lsp/docs/adapters-local-change-not-aware.md | 9 +++++++++ src/lsp/docs/over-sized-record.md | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/lsp/docs/adapters-local-change-not-aware.md create mode 100644 src/lsp/docs/over-sized-record.md diff --git a/src/lsp/docs/adapters-local-change-not-aware.md b/src/lsp/docs/adapters-local-change-not-aware.md new file mode 100644 index 0000000..588ca9e --- /dev/null +++ b/src/lsp/docs/adapters-local-change-not-aware.md @@ -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. \ No newline at end of file diff --git a/src/lsp/docs/over-sized-record.md b/src/lsp/docs/over-sized-record.md new file mode 100644 index 0000000..1300a43 --- /dev/null +++ b/src/lsp/docs/over-sized-record.md @@ -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. \ No newline at end of file