Git Product home page Git Product logo

Comments (5)

TimEvWw avatar TimEvWw commented on July 18, 2024

I used one shared db access stored in $dbaccess for all modules. This is normally instantiated in farmbot.rb

Op 25-feb.-2015 om 05:33 heeft Rick Carlino [email protected] het volgende geschreven:

Hey Tim,

any idea why @dbAccess is nil in MessageHandler?

class MessageHandler
def initialize
# . . .
@dbAccess = $dbaccess
end
end

Reply to this email directly or view it on GitHub.

from farmbot_os.

TimEvWw avatar TimEvWw commented on July 18, 2024

It just takes the RPi a long time to start up db access (seconds while on a PC this is fractions of a second) so doing it once instead of multiple times (for each class separate db access) made the software start up a bit faster.

Op 25-feb.-2015 om 05:33 heeft Rick Carlino [email protected] het volgende geschreven:

Hey Tim,

any idea why @dbAccess is nil in MessageHandler?

class MessageHandler
def initialize
# . . .
@dbAccess = $dbaccess
end
end

Reply to this email directly or view it on GitHub.

from farmbot_os.

roryaronson avatar roryaronson commented on July 18, 2024

Perhaps when we upgrade to Raspberry Pi 2's performance issues like that will be less of an issue ;)

@TimEvWw, hop onto g-chat if you can!

from farmbot_os.

TimEvWw avatar TimEvWw commented on July 18, 2024

Given that the RPi2 also runs on a SD card, and is only a few times faster, upgrading will help but won't be a cure all.

G-chat in an hour and half.

Op 25-feb.-2015 om 05:58 heeft Rory Aronson [email protected] het volgende geschreven:

Perhaps when we upgrade to Raspberry Pi 2's performance issues like that will be less of an issue ;)

@TimEvWw, hop onto g-chat if you can!


Reply to this email directly or view it on GitHub.

from farmbot_os.

TimEvWw avatar TimEvWw commented on July 18, 2024

If you run it now with farmtalk.rb, dbaccess is set.

On Wed, Feb 25, 2015 at 7:32 AM, Tim Evers [email protected] wrote:

Given that the RPi2 also runs on a SD card, and is only a few times
faster, upgrading will help but won't be a cure all.

G-chat in an hour and half.

Op 25-feb.-2015 om 05:58 heeft Rory Aronson [email protected]
het volgende geschreven:

Perhaps when we upgrade to Raspberry Pi 2's performance issues like that
will be less of an issue ;)

@TimEvWw https://github.com/TimEvWw, hop onto g-chat if you can!


Reply to this email directly or view it on GitHub
#51 (comment)
.

from farmbot_os.

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.