Grok wrecked my relatively simple FASTER DB project - I can't solve it - please help #939
-
Hi - I was having Grok help me further develop this database application, and I don't know what happened but Grok changed something, and as far as I can tell the code looks fine, but I'm no longer getting a persistent database and cannot restore, and the log files are tiny. I'm a bit of a noob so I apologize, but at this point I would like some help with the code. Anyone willing to give me an hour of their time, I'll pay a good rate for 1 hr (100+/hr USD), we can do a screen-share on Zoom/Teams or something? It shouldn't take long. I can show you some basic code here if you like. Environment is VS2022, C# 8.0, developing for Windows 11. This is the basic structure, seems like it's fine to me? Before exiting, it definitely has all good values held in memory...but it just never goes to disk it seems. If you can answer just from looking at this code, awesome, if not, I'm sure an hour with someone who knows better what they're doing would get me on my way. Thank you.
In the constructor:
In the builder:
The database *.0 files used to be significant (MB's), now they are tiny (a few kB's), and when I try to recover, this code reports nothing is in the database, which is consistent with the .0 files being tiny:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Notes: When you're struggling with recovery issues, especially when changing default memory / size constraints, have a look at this sample: See: |
Beta Was this translation helpful? Give feedback.
-
Thank you. Yes, I did solve the log settings problem and did get it working again. Good lesson in using LLM to help code....only do tiny little bits at once, and commit every single step so you can walk it back; but isn't that the lesson for anyone... Thank you for the link to the fork, and also the samples link. |
Beta Was this translation helpful? Give feedback.
LogSettings
- just use one or the other.SimpleFunctions
for raw (I think var-length) bytes. SimpleFunctions are basic, "empty" functions. You need to use one of the functions for your type. That will either be MemoryFunctions or SpanByteFunctions. SpanByteFunctions will expect you to pin your memory, so you should probably use MemoryFunctions.Recover
instead of passingtryRecoverLatest : true
in the ctor of the store. Just let FASTER figure out recovery by passing this.