Android Question Seeking Guidance on Optimizing Database Access for Scaling B4X App

amarnath

Member
Licensed User
Longtime User
I'm currently using B4J with JdbcSQL to connect directly to a remote MySQL database:

B4X:
Public mysql As JdbcSQL
Public driver As String = "com.mysql.jdbc.Driver"
Public jdbcUrl As String = "jdbc:mysql://207.1*.2*.2*:3306/amarnq4g_dairy?useSSL=False&characterEncoding=utf8"
Public Username As String = "amarg_amarnath"
Public Password As String = "Amarnath@@1234"

However, saving data takes over 30 seconds—too slow for my growing user base (projected >1000 clients).

Would switching to RDC (Remote Database Connector) or using a custom API (e.g., api.php) significantly improve performance and scalability?

Given your expertise, which approach would you recommend for a high-performance B4X mobile app serving thousands of users?

Thank you for your time and guidance.
 

hibrid0

Active Member
Licensed User
Longtime User
Check this template ready to use from the master Aeric. Why you don't use the search function? 🤔🤔🤔
Have a lot of examples.

And this is a mod for Jrdc2 for multiple dbs, json answers and more performance.
 
Last edited:
Upvote 0

amarnath

Member
Licensed User
Longtime User
Check this template ready to use from the master Aeric.
Thank you for your patience.
I’ve decided to fully switch to jRDC2—since I have a VPS and want to stay 100% in the B4X ecosystem.

This will help me avoid common pitfalls and move forward smoothly.


Thanks again for all your support!
 
Upvote 0
Top