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

Disable meta/revision #560

Closed
zeoliveirajunior opened this issue Apr 21, 2017 · 2 comments
Closed

Disable meta/revision #560

zeoliveirajunior opened this issue Apr 21, 2017 · 2 comments

Comments

@zeoliveirajunior
Copy link

Hello Guys,

I was thinking about the meta header in each collection, and for each update the api push a new meta header with the revision (i think it´s for any replication or sync feature):

{ "id": "zeoliveirajunior@gmail.com", "meta": { "revision": 0, "created": 1492782478178, "version": 0 }, "$loki": 1 },

Well, in my application i have my own sync mechanism and i do a lot of update operation, so maybe my database could quickly become huge.

Is there any way to disable this?

Thank in advance, sorry for my english.

@obeliskos
Copy link
Collaborator

aside from changes api and ttl cache functionality, I don't think it's needed internally it would just take time to add options and update the various code paths.

another option might be similar to #557, which is to just to either call javascript array.map() on the results or for us to add a map or projection function to do similar functionality. This would add overhead (be a bit slower) depending on how large your resultset is.

@Viatorus
Copy link
Collaborator

I will track this for LokiJS 2.

@Viatorus Viatorus reopened this Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants