Skip to content

Commit

Permalink
Update data_structures.asciidoc
Browse files Browse the repository at this point in the history
Fix chapter level
  • Loading branch information
happi authored Mar 26, 2024
1 parent 8882233 commit ae49c8d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions chapters/data_structures.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Work In Progress!

== Outline ==
=== Outline

Process Dictionary
The PD is actually an Erlang list on the heap. Each entry in the list is a two tuple ({key, Value}) also stored on the heap.
Expand All @@ -17,7 +17,7 @@ erase(Key)
erase()


== ETS ==
==== ETS
Erlang Term Storage.

Off heap key value store.
Expand All @@ -32,7 +32,7 @@ Table types are: set, bag, ordered_set, duplicate_bag.

(We will look at them when talking about Mnesia)

== DETS ==
==== DETS
Disk-based Erlang Term Storage

Can be opened by multiple Erlang processes.
Expand All @@ -43,7 +43,7 @@ Buddy system in RAM.

Table types are: set, bag, duplicate_bag.

== MNESIA ==
=== MNESIA

Erlang/Elixir terms stored in tables using records on top level.
The table types are:
Expand Down Expand Up @@ -98,9 +98,9 @@ MNESIA transaction

(Add diagram)

Note that most actions happens in the calling process. Access is granted by mnesia, but the process performs the tasks.
Note that most actions occur in the calling process. Mnesia grants access, but the process performs the tasks.

Note that nothing changes in global state (or disc) until the commit.
Nothing changes in global state (or disc) until the commit.

MNESIA dirty ops

Expand All @@ -122,7 +122,7 @@ dump_log_time_threshold
dump_log_write_threshold


The warning "Mnesia is overloaded" is issued when a dump is triggered before the last one has finished. This is mostly harmless, but the parameters should be tweaked to only get the warnings when the system is actually loaded.
The warning "Mnesia is overloaded" is issued when a dump is triggered before the last one has finished. This is mostly harmless, but the parameters should be tweaked to only get the warnings when the system is loaded.

(Add diagram)

Expand Down

0 comments on commit ae49c8d

Please sign in to comment.