Code Monkey home page Code Monkey logo

Comments (5)

naumenko avatar naumenko commented on May 25, 2024

One more thing is that when server was already assigned to the room, then there is no need (or even against user's selection) to forcibly select another server with less number of rooms

from bigbluebutton_rails.

daronco avatar daronco commented on May 25, 2024

@naumenko thanks for the issue. We haven't used it with postgres yet, so I didn't know about this error. If you found a way to fix it and are willing to submit a pull request it would be great. Otherwise I'll try it someday in the future.

Also, you are probably right about the selection of servers. The idea was to dynamically select a server when a meeting is about to be started (https://github.com/mconf/bigbluebutton_rails/blob/master/app/models/bigbluebutton_room.rb#L119), as a way to balance the load. But that's not really effective and it's not the best way to do it. It as well might be better to let the application associate servers and rooms.
If you have any ideas about this, feel free to suggest here!

from bigbluebutton_rails.

mkuchhal avatar mkuchhal commented on May 25, 2024

I found a solution for the PG error; just replace the parameter in the group_by clause. The second line of the query should look like this:

joins(:rooms).group("bigbluebutton_servers.id").order("room_count ASC").first

I can create a pull request for this but I dont have a mysql server setup and so wont be able to test against that.

Hopefully that helped though it is 2 years too late.

from bigbluebutton_rails.

daronco avatar daronco commented on May 25, 2024

@mkuchhal, yes, send a pull request, please. If the changes are really that small, we can start testing the gem on mysql and postgres to support both.

from bigbluebutton_rails.

daronco avatar daronco commented on May 25, 2024

Closing this because it's an old issue. If PostgreSQL is supported in the future, this will be solved.

from bigbluebutton_rails.

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.