Client side MySQL DB using embedded library
Posted: Mon 19 Feb 2007 13:39
Hello,
I have a MySQL DB on my server and I'll be accessing it with my client application.
- The server DB will be populated by files the server downloads.
- The client app will never insert, or update the servers DB.
- The client app will only retrieve new records from the server DB to populate the client DB.
So my question is... what is the best way to do something like this?
I was thinking of having the client remember the primary key auto inc number for each table, then select all records since then..... then populate the client side DB with the result query.
The client will be querying the server DB about 1 time every 15 minutes.
My question, is this a bad design, or bad approach?
I want the client side DB so that users can use the data without connecting to the Internet.
Any advise or comments is very welcome.
Thanks!
Bryan
I have a MySQL DB on my server and I'll be accessing it with my client application.
- The server DB will be populated by files the server downloads.
- The client app will never insert, or update the servers DB.
- The client app will only retrieve new records from the server DB to populate the client DB.
So my question is... what is the best way to do something like this?
I was thinking of having the client remember the primary key auto inc number for each table, then select all records since then..... then populate the client side DB with the result query.
The client will be querying the server DB about 1 time every 15 minutes.
My question, is this a bad design, or bad approach?
I want the client side DB so that users can use the data without connecting to the Internet.
Any advise or comments is very welcome.
Thanks!
Bryan