Skip to content

Commit 48cc799

Browse files
update Open Source Docs from Roblox internal teams
1 parent e94be01 commit 48cc799

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

content/en-us/assets/data/memory-store/Data-Structure-Flowchart.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

content/en-us/assets/data/memory-store/Flow-Chart-Transparent.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

content/en-us/assets/data/memory-store/Flow-Chart.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

content/en-us/assets/data/memory-store/memory-store-structure-flow-chart.drawio

Lines changed: 0 additions & 3 deletions
This file was deleted.

content/en-us/cloud-services/memory-stores/index.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,23 @@ Instead of directly accessing raw data, memory stores have three primitive data
1515
- **Shared inventories** - Save inventory items and statistics in a shared **hash map**, where users can utilize inventory items concurrently with one another.
1616
- **Cache for Persistent Data** - Sync and copy your persistent data in a data store to a memory store **hash map** that can act as a cache and improve your experience's performance.
1717

18-
<img src="../../assets/data/memory-store/Flow-Chart.svg" width="60%" />
18+
```mermaid
19+
graph TD
20+
A[Does your data need to be sorted in a specific order?]
21+
B[Use a sorted map.]
22+
C[Do you need the ability to scan all of your items at once?]
23+
D[Use a hash map.]
24+
E[Do you expect to have fewer than 1,000 keys?]
25+
26+
A -- YES --> B
27+
A -- NO --> C
28+
29+
C -- YES --> E
30+
C -- NO --> D
31+
32+
E -- YES --> B
33+
E -- NO --> D
34+
```
1935

2036
In general, if you need to access data based on a specific key, use a hash map. If you need that data to be ordered, use a sorted map. If you need to process your data in a specific order, use a queue.
2137

0 commit comments

Comments
 (0)