Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: lack of volatile storage #197

Open
yrashk opened this issue Mar 22, 2017 · 5 comments
Open

Problem: lack of volatile storage #197

yrashk opened this issue Mar 22, 2017 · 5 comments

Comments

@yrashk
Copy link
Contributor

yrashk commented Mar 22, 2017

There are certain cases, like in-memory indexing or testing, where NOT storing data to disc between restarts would have been useful.

(Also, MUMPS has this distinction as well in a form of volatile and global variables.)

Proposed solution: introduce WRITE/VOLATILE and READ/VOLATILE (or, say, WRITE*/READ*) transactions. This way one one can use all storage-related functionality interchangeably.

@omarkj
Copy link
Contributor

omarkj commented Mar 24, 2017

Hi Yurii,

This sounds interesting to me, but I'm trying to understand when this would be useful. Is this something similar to temporary tables in SQL? If so, a transaction-scoped variables would basically accomplish this.

@yrashk
Copy link
Contributor Author

yrashk commented Mar 24, 2017

The utility I can see is primarily in-memory indices (those are bloody fast), with the volatility borders at the server restarts.

@tsafin
Copy link

tsafin commented Mar 28, 2017

There are different levels of persistency in GT.M and Caché, which kind of volatile memory did you mean here? Globals vs local? Globals under transaction scope and outside

@tsafin
Copy link

tsafin commented Mar 28, 2017

(sorry for partial comment, got disconnected in the subway)
There are also semi-persistent globals mapped to volatile in memory database. So which kind of nonvolatile primitive did you mean here?

@yrashk
Copy link
Contributor Author

yrashk commented Mar 28, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants