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

Question on Tracker.list #84

Closed
cjimison opened this issue Aug 7, 2017 · 0 comments
Closed

Question on Tracker.list #84

cjimison opened this issue Aug 7, 2017 · 0 comments

Comments

@cjimison
Copy link

cjimison commented Aug 7, 2017

Hey all,

We have integrated the phoenix_pubsub into our application and it is great. I noticed in the Phoenix.Tracker.State module that that "values" ets table is created via the following command:

values: :ets.new(:values, [:ordered_set])

When one calls the Phoenix.Tracker.list function it is returning a copy of the State object and it then calls an :ets.select on :values tid. Since this query is happening on a caller process and not the GenServer managing the state object, I was wondered why {read_concurrency, true} is not given as an option?

For our use cases when a user logins in they pull a friends list and check it against the Tracker system so we are doing a lot of current reads.

Thanks!

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