GithubHelp home page GithubHelp logo

Comments (3)

carletex avatar carletex commented on August 20, 2024

Hey @gotnoshoeson thank for opening the issue. We've talked about this a few times and I think it's a good idea!

If we haven't implemented it yet it's because we were worried about performance, and were thinking about caching ideas. Hitting the /builders page and requesting everyone's avatar will make a bunch of requests.

I pretty much have this working already.

Are you using any caching mechanism? Are you using an API or RPC calls? Feel to open a draft PR and we can discuss there.

Thanks.

from buidlguidl-v3.

gotnoshoeson avatar gotnoshoeson commented on August 20, 2024

Thanks @carletex ,

Realizing that my solution isn't very optimized; I'm using my own firebase db so it's pretty fast with only 5 users :) Currently utilizing RPC calls.

I'm now thinking a more scalable/optimized solution would be to hit the ENS subgraph endpoint with an array of builder addresses as an argument variable, that'd be one request/one response with all the needed data. I'll open a PR with this method.

from buidlguidl-v3.

carletex avatar carletex commented on August 20, 2024

ENS subgraph endpoint with an array of builder addresses as an argument variable

This sounds great! Grouping addresses in a single request would save a lot.

My other idea was to cache it in Firebase (as we do with ENS names**).

** We save the resolved ENS name when a builder is created in the system. We'd also need a cron job to update (not happening at the moment). The other issue is that pages like /activity don't benefit (since we are not "joining" log data with the builder data (where the ENS name is saved). The good thing is that in the /builders page or an individual page, the data is already there.

Anyway, just thinking out loud! Feel free to PR and we can work from there.


Related: I found this too https://metadata.ens.domains/docs#/paths/~1%7BnetworkName%7D~1avatar~1%7Bname%7D/get. An API for getting ENS data :D

Thanks again for working on this, man!

from buidlguidl-v3.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.