Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7533855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:50:50+00:00 2026-05-30T05:50:50+00:00

I have got a Rails app running which displays data that is generated by

  • 0

I have got a Rails app running which displays data that is generated by some cronjobs. This app is hosted on an embedded device which hasn’t got that many ressources. I tested several methods of doing this the rails way. Each of them fails either because rails has to be loaded (too resource hungry) or mongrel is blocked while the cronjob is executed (calling wget on a action which does the job). As I am limited to one mongrel instance on this device, especially the wget-method is fatal.

So I discovered that it’s the most resource-efficient way to execute a native cronjob on the underlying *nix OS, and hand on the result to rails. At the moment this is done by writing data from the cronjobscript directly to a special “hand on”-table in the rails database.

So what to consider when writing to the database without using the “model” of rails? Any pitfalls? What about the updated_at field? Do I have to update the date to force rails to reload the data?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:50:52+00:00Added an answer on May 30, 2026 at 5:50 am

    You need to make no special considerations in my opinion.

    You don’t need to update the updated_at column for Rails to reload it. The decision to reload or not is entirely up to the Rails code. Rails needs to be able to cope with direct access to the database since this is a common method for clustering.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a rails app that displays a list of items called modules. I'm
This is a very strange problem. I've got a rails app in which I
I have a Rails 3.1 app where I just got some weird behavior. I
I've got a Rails app that's running in an iframe in a canvas app
I have got some code to load an assembly and get all types, which
This one has got me stumped. I'm deploying a Rails 3 app to Slicehost
I'm running Rails 3, and I've got several controllers that all do something like
I've got a Rails app that'll be sitting on top of a legacy database
I have a small rails app I got all gung-ho on tonight wanting to
This is probably something stupid as I have never deployed a Rails app before.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.