Room: Fts4 with string primary key
up vote
4
down vote
favorite
I want to create an entity that (its table) synchronized with data from a server.
The objects from the server contains string id so I create a regular field (not primary key) for this id (as the Fts4 force only integer primary keys).
But now, when I update the room database with objects from the server, the database doesn't going to replace an exists objects (with the same ids that just modified).
android mysql full-text-search android-room
add a comment |
up vote
4
down vote
favorite
I want to create an entity that (its table) synchronized with data from a server.
The objects from the server contains string id so I create a regular field (not primary key) for this id (as the Fts4 force only integer primary keys).
But now, when I update the room database with objects from the server, the database doesn't going to replace an exists objects (with the same ids that just modified).
android mysql full-text-search android-room
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I want to create an entity that (its table) synchronized with data from a server.
The objects from the server contains string id so I create a regular field (not primary key) for this id (as the Fts4 force only integer primary keys).
But now, when I update the room database with objects from the server, the database doesn't going to replace an exists objects (with the same ids that just modified).
android mysql full-text-search android-room
I want to create an entity that (its table) synchronized with data from a server.
The objects from the server contains string id so I create a regular field (not primary key) for this id (as the Fts4 force only integer primary keys).
But now, when I update the room database with objects from the server, the database doesn't going to replace an exists objects (with the same ids that just modified).
android mysql full-text-search android-room
android mysql full-text-search android-room
asked yesterday
Bokris Itzhak
285217
285217
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416719%2froom-fts4-with-string-primary-key%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown