B4J Question How to update changes and additions to a SQLITE database?

johnerikson

Active Member
Licensed User
Longtime User
How to update changes and additions to a SQLITE database to visualize new data immediately.
In the browser I can click F5.
. Commit is not available in B4J which otherwise might update!
 

johnerikson

Active Member
Licensed User
Longtime User
Thanks!
In a server-side solution, images are stored by reading metadata from the images and saving the data in tables in SQLITE.
Among other things, a unique identity and save datetime are saved. After a save has been performed, a completion is usually up to date,
which means a search on the save datetime to retrieve the newly stored images, which does not give immediate results,
the fastest to reach them is to log out and log in again! Not pretty.
It is possible to solve in another way 'Save in memory' what I going to do, but I thought that I missed some possible way to do a refresh in the program.
 
Upvote 0

johnerikson

Active Member
Licensed User
Longtime User
Thanks!
I know that if I close the connection and then open it again, the data is available.
But can I really do that since many users are running at the same time on the same connection.
Have learned from 'experts'? Closing it can create problems for other users, who also recommend using only one connection for writing for all users, but preferably multiple for reading.
If I can close it without problems even with multi-users, the problem is solved.

Have I learned wrong, can I close the connection without problem?
 
Upvote 0

johnerikson

Active Member
Licensed User
Longtime User
I follow the descriptions but don't succeed. I need to access the data immediately after saving!
I'm doing a trial with a minimal desk top project, to verify if there's something wrong embedded in the server-project.
I can't be the only one who needs data immediately after saving! I feel as if a 'force out' is missing.
 
Upvote 0

johnerikson

Active Member
Licensed User
Longtime User
I have the solution, but then I can't follow the suggestion to use one cooection for writing and several others for reading.
It turns out that if I write and read with the same connection, all the data is up to date!
I change and test, I'll find out if there are any problems
 
Upvote 0
Top