GithubHelp home page GithubHelp logo

Comments (7)

overtrue avatar overtrue commented on May 31, 2024 4

@solwyvern Yes, I am working on this. and I have made a package for like/unlike: https://github.com/overtrue/laravel-like

from laravel-follow.

arcdelsol avatar arcdelsol commented on May 31, 2024 2

Definitely need to have separate tables to have more scalability. You can have thousands of likes/favorites/bookmarks/etc... but all querying the same table

from laravel-follow.

overtrue avatar overtrue commented on May 31, 2024 1

@taliptako Thanks. I will make some changes on next major version. Thanks for your advice.

from laravel-follow.

overtrue avatar overtrue commented on May 31, 2024

Thanks, I am just put them all data into one table because these relations are same data structure, I have added index on followable_type column, so it shouldn't increase the query time.

from laravel-follow.

overtrue avatar overtrue commented on May 31, 2024

Plz let me know If you has any other good idea. 😄

from laravel-follow.

taliptako avatar taliptako commented on May 31, 2024

Thanks, I am just put them all data into one table because these relations are same data structure, I have added index on followable_type column, so it shouldn't increase the query time.

It still increases the query time but for little projects it won't be a problem I think. I decided to use different packages for all my traits.I will use subscribable from yours. Thank you :D

from laravel-follow.

overtrue avatar overtrue commented on May 31, 2024

This pack has a long history and the design wasn't perfect at the time, making it difficult to update now, I recently made a series of sub-packages of this bunch of relationships, you can try out the new package, sorry for the trouble!

from laravel-follow.

Related Issues (20)

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.