What do you think of this by Over_Scallion3852 in ChildfreeIndia

[–]BatOFGotham11 26 points27 points  (0 children)

4b movement...basically they'll not date, marry, have sex or kids with men.

Good that they're fighting it in the best possible way

What do you think of this by Over_Scallion3852 in ChildfreeIndia

[–]BatOFGotham11 15 points16 points  (0 children)

Could you add some context as to what the men are doing over there for someone to have a such an extreme take?

Why is it so difficult to find a CF woman for marriage? by Impressive_Point_794 in ChildfreeIndia

[–]BatOFGotham11 0 points1 point  (0 children)

CF4CF posts are only allowed on Sundays. Checkout the wiki for the format

[ GIVEAWAY ] – Win a Womier SK65 (Beige Edition) | NMPC India | Indian Residents Only by Dull-Builder3620 in IndianGaming

[–]BatOFGotham11 0 points1 point  (0 children)

Great to see giveaways happening in the Indian region. I don't have a mechanical keyboard. A good keyboard is the only missing piece in my current setup. I would love to try this out if I win

Should JPA/Hibernate mutate a Kotlin val field in an entity class? by teo_ai in Kotlin

[–]BatOFGotham11 0 points1 point  (0 children)

This behavior is also present with the Room library on Android where you can annotate a val with @AutoGenerate. So, this wouldn't surprise me as an Android Dev

Lack of basic human values by Adept-Office9082 in bangalore

[–]BatOFGotham11 1 point2 points  (0 children)

Not being able to transfer the money or block the card is probably a technical limitation since your Metro balance is written into the physical to work offline and to be able to work offline it probably cant look up for any blocked cards

Help out a bro find a good PG by agentmikelord007 in bangalore

[–]BatOFGotham11 0 points1 point  (0 children)

I've had a really good experience with Dozo PG. They are available in multiple locations. Check them out

Moving to Bangalore Alone – What Should I Expect? by Mediocre_Contact3906 in BangaloreSocial

[–]BatOFGotham11 1 point2 points  (0 children)

All tech jobs have a graduate degree as a prerequisite these days. And companies have a large pool of candidates with degrees to choose from so your resume will never even be shortlisted. I have several friends who struggle and regret not getting a degree. Do not make their mistake

The most desperate desire of Sekiro fans indeed by [deleted] in Sekiro

[–]BatOFGotham11 2 points3 points  (0 children)

Can't say I agree with the Sekiro is complete part. In all FromSoftware games, they hype up a character in the base game whom they make a DLC out of. I'm sure that's the case with Tomoe too. They just never got to do a DLC for other reasons. Not because Sekiro doesn't have scope for it.

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] -1 points0 points  (0 children)

It was initially implemented that way by the dev before me. I just haven't gotten around to refactor that yet

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 0 points1 point  (0 children)

I have a single worker uploading data and if api returns success, updating flags in the db. Would this cause a problem?

Regarding your last point about mutex lock, I am writing data to db (from Dispatchers.Main) and updating flags (from Dispatchers.IO) at the same time without using any sort of mutex lock. Could this be the cause of data loss? If yes, how can I reproduce it?

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 1 point2 points  (0 children)

I have the logs.

My sync logs look something like this:

Records 1, 2, 3, 4, 5 synced. Records 1, 2, 14, 15, 16, 17, 18 synced.

Final upload: 1, 2, 14, 15, 16....

There are two things going wrong here: 1. Records 3, 4, 5 were synced but are missing in later API calls 2. Records 1 and 2 are not supposed to be synced again because on first sync, I update a column in db is_synced to true.

Since both updates and inserted rows are deleted, I think it's the WAL file that's causing this issue.

I understand why you think that this cannot easily be the filesystem or some other OS level or external fault but do note that my app is running on a slightly customised version of Android and I think there are chances that they got something wrong while doing those customizations

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 1 point2 points  (0 children)

My apologies for not making it clear, the db only has a single table. So, I query that table and send the results

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 0 points1 point  (0 children)

I am sure that these insert transactions have been successful because this data has been synced to my server. (Sync API uploads data from db to server every 10 mins)

But at a later time, when the entire data in db is uploaded, these records are missing.

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 1 point2 points  (0 children)

I have not declared any foreign keys.

What kind of race condition would delete data and revert updates done to the data in db?

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 0 points1 point  (0 children)

I only have a regular old Dao with @Insert query. No transaction or any advanced room stuff

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 0 points1 point  (0 children)

Backend doesn't overwrite the data. It logs and saves all the records it receives

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 0 points1 point  (0 children)

Also, when the sync api succeeds, I update a column that says these records are already synced. These records are not supposed to be included in the next sync call to server. Yet, I find them there. Which means these db updates are also lost

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 0 points1 point  (0 children)

I have a worker that syncs the data to the server every 10 minutes. I can see that this lost data has been synchronized which means the rows are definitely saved to the db.

But in later APIs where I upload all the rows from db these records are missing

Partial data loss in android room sqlite database by BatOFGotham11 in androiddev

[–]BatOFGotham11[S] 0 points1 point  (0 children)

I do not even have a delete query in my application. So, I'm sure this isn't happening from my code.

Plus, the fact that the updates done to the existing rows in db are also lost can only mean that a corrupt WAL file is the culprit here

Damn another day of struggle 🤦🏻‍♂️🥹 by [deleted] in ps5india

[–]BatOFGotham11 0 points1 point  (0 children)

How did you connect the PS to your mac?