My last invoice was more than usual

mariavla
HOBBY

15 days ago

I would like to understand why the bill from june was so high compare to my other months?

My application has very little traffic.

Also, in my rails app in railway I have some pages that takes 30 seconds to load fetching 90 records but in my local, the same page with 100 records loads in 164ms, why can this be?

$10 Bounty

6 Replies

Railway
BOT

15 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


14 days ago

I'd be happy to help you understand your billing and performance concerns.

Regarding your June billing:

Railway uses usage-based billing, which means you're charged based on actual resource consumption rather than a flat monthly rate. A few things that could cause higher bills:

  • Resource spikes: Even with low traffic, background jobs, database operations, or memory-intensive processes can increase usage

  • Always-on services: Services that run continuously (databases, background workers) consume resources 24/7

  • Inefficient queries: Slow database queries consume more CPU time, increasing costs

  • Memory usage: Applications with memory leaks or high memory consumption cost more

You can check your exact usage breakdown in your Railway dashboard under the "Usage" tab to see which services consumed the most resources in June.


Status changed to Awaiting User Response Railway 14 days ago


mariavla
HOBBY

9 days ago

Thanks for your reply!

I don't see any change from month to month but I think there is something wrong, because a in railway I have some pages that takes 30 seconds to load 90 records from my db, very basic query. But in my local, the same page with 100 records loads in 164ms, why can this be?


Status changed to Awaiting Railway Response Railway 9 days ago


echohack
EMPLOYEE

7 days ago

Hiya,

Looks like you're connecting your database over the public network instead of the private network. You can read more about private networking here: https://docs.railway.com/guides/private-networking


Status changed to Awaiting User Response Railway 7 days ago


echohack

Hiya,Looks like you're connecting your database over the public network instead of the private network. You can read more about private networking here: https://docs.railway.com/guides/private-networking

mariavla
HOBBY

3 days ago

Okay, I see this warnings on the env vars...

Is this to what you are refering to?

What should I change and what should I change it to or where can I find that?

I didn't fully understand it reading the docs :)

Thanks!


Status changed to Awaiting Railway Response Railway 3 days ago


2 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 2 days ago


2 days ago

Hello,

I have made this thread public and put a bounty on it so that the community can help you get your configuration set up correctly!