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

ETag and mtime for patterns #130

Open
kjetilk opened this issue Mar 19, 2019 · 2 comments
Open

ETag and mtime for patterns #130

kjetilk opened this issue Mar 19, 2019 · 2 comments

Comments

@kjetilk
Copy link
Contributor

kjetilk commented Mar 19, 2019

I found in my most recent experiment that there are some patterns I can compute specific etags for inexpensively, and some that I can't, see

https://github.com/kjetilk/p5-atteanx-store-filesystem/blob/master/lib/AtteanX/Store/Filesystem.pm#L196-L204

And so I figured, I'd implement the etag_value_for_quads for a quad pattern. I suppose we didn't quite intend that when we designed it, but it seems like a trivial extension, doesn't it?

The same would work for mtimes, I suppose.

@kasei
Copy link
Owner

kasei commented Mar 19, 2019

I'm not sure I understand the suggestion here. Can you provide some more details?

@kjetilk
Copy link
Contributor Author

kjetilk commented Mar 19, 2019

I think that when we originally designed etag_value_for_quads, it would take no arguments, and would return a token that can be used as an etag for the store as a whole, i.e. if any statement in the store changed, the token would change.

The idea is that we could provide something that more fine grained, that the token for a certain quad pattern would remain constant even though a statement matched by some other pattern have changed...

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

2 participants