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 9123779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:25:28+00:00 2026-06-17T06:25:28+00:00

I am having a problem and I need your help. I am working with

  • 0

I am having a problem and I need your help.

I am working with Play Framework v1.2.4 in java, and my server is uploaded in the Heroku servers.

All works fine, I can access to my databases and all is ok, but I am experiment troubles when I do a couple of saves to the database.

I have a method who store data many times in the database and return a notification to a mobile phone. My problem is that the notification arrives before the database finish to save the data, because when it arrives I request for the update data to the server, and it returns the data without the last update. After a few seconds I have trying to update again, and the data shows correctly, therefore I think there is a time-access problem.
The idea would be that when the databases end to save the data, the server send the notification.

I dont know if this is caused because I am using the free version of the Heroku Servers, but I want to be sure before purchasing it.

  • 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-06-17T06:25:29+00:00Added an answer on June 17, 2026 at 6:25 am

    In general all requests to cloud databases are always slower than the same working on your local machine. Even simply query that on your computer needs just 0.0001 sec can be as slow as 0.5 sec in the cloud. Reason is simple clouds providers uses shared databases + (geo) replications, which just… cannot be compared to the database accessed only by one program on the same machine.

    Also keep in mind that free Heroku DB plans doesn’t offer ANY database cache, which means that every query is fetched from the cloud directly.

    As we don’t know your application it’s hard to say what is the bottleneck anyway almost for sure you have at least 3 ways to solve your problem. They are not an alternatives, probably you will need to use (or at least check) all of them.

    1. You need to risk some basic plan and see how things changed with paid version, maybe it will be good enough for you, maybe not.
    2. Redesign your application to make less queries. For an example instead sending 10 queries to select 10 different rows, you will need to send one query, which selects all 10 records at once.
    3. Use Play’s cache API to avoid repeating selecting the same set of data again and again. For an example, if you have some categories, which changes rarely, but you need category tree for each article, you don’t need to fetch categories from DB every time, instead you can store a List of categories in cache, so you will need to use only one request to fetch article’s content (which can be cached for some short time as well…)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to django. so I need your help. I am having a problem,
i need your help.. i having a problem with mysql, when i run UPDATE
I am working on a homework problem, I'm close but need some help with
I need your help in solving the following problem: There're 3 girls (Ann,Susan,Alice) who
I need your help....I'm working on a little Time Management Sytem for my compagny.
I'm having an CSS problem, i need to achieve this article div#comments-wrapper ul.sub-comment:before {
I am having some problems with an XML transform and need some help. The
I need some help with some regular expression problems I am having. First off,
I am having problem using mvc:resources in spring 3.1 configuration. Initially i was working
I am having trouble working out how to use a CursorLoader. The problem I

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.