Skip to content

Implement record updates #6

@chouzar

Description

@chouzar

There are quite a bit of caveats implementing updates, not sure if they are really needed when probably retrieving and re-inserting data would be easier. So only a feature if a good API can be figured out.

https://www.erlang.org/doc/apps/stdlib/ets.html#update_element/4

The function fails with reason badarg in the following situations:

  • The table type is not set or ordered_set.
  • The element to update is also the key.

https://www.erlang.org/doc/apps/stdlib/ets.html#select_replace/2

For the moment, due to performance and semantic constraints, tables of type bag
are not yet supported.

In cases the feature is not supported, maybe just implement a less efficient fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions