Ask HN: What problem are you close to solving and how can we help?
11–20 of 486 posts
Re: Ask HN: What problem are you close to solving and how can we help?
#12We are having atrocious READ/WRITE latency with our PG database (api layer is django rest framework). The table that is the issue consists of multiple JSON BLOB fields, with quite a bit of data— I am convinced these need to be abstracted to their own relational tables. Is this a sound solution? I believe it is the deserialization in these fields of large nested JSON BLOBS that is causing latency. Note: this database…
If you write a small program to check the integrity of your blobs i.e. that the structure of the json didn't change over time, you may be able to infer a relational table schema that isolates those bits that really need to be blobs. Too leave it too long invites long term compatibility issues if somebody changes the structure of your json objects.
Re: Ask HN: What problem are you close to solving and how can we help?
#13Earlier quoted context omitted.
imo, json dt should be an intermidiary step in db struc in rdb, never the final. Once you know & have stable columes, unravel the json into proper cols with indexing, it should improve the situation if youre having issues with 5gb, you will face exponential problems when it grows due to lack of indexing
Cheers for the response (and affirmation). After some latency profiling I am convinced proper cols with indexing will vastly improve our situation since the queries themselves are very simple.
Re: Ask HN: What problem are you close to solving and how can we help?
#14Who are "we"?
Re: Ask HN: What problem are you close to solving and how can we help?
#15We are having atrocious READ/WRITE latency with our PG database (api layer is django rest framework). The table that is the issue consists of multiple JSON BLOB fields, with quite a bit of data— I am convinced these need to be abstracted to their own relational tables. Is this a sound solution? I believe it is the deserialization in these fields of large nested JSON BLOBS that is causing latency. Note: this database…
Re: Ask HN: What problem are you close to solving and how can we help?
#16I am looking for my first client: Ideally someone in charge of a Museum/gallery or other grandiose indoor space.
Re: Ask HN: What problem are you close to solving and how can we help?
#17We are having atrocious READ/WRITE latency with our PG database (api layer is django rest framework). The table that is the issue consists of multiple JSON BLOB fields, with quite a bit of data— I am convinced these need to be abstracted to their own relational tables. Is this a sound solution? I believe it is the deserialization in these fields of large nested JSON BLOBS that is causing latency. Note: this database…
I don't know about PG, but with MariaDB, a nice way to find bottlenecks is to run SHOW FULL PROCESSLIST in a loop and log the output. So you see which queries are actually taking up the most time on the production server. If you post those queries here, we can probably give tips on how to improve the situation.
Tangentially related for those who have experience, I am using Django-silk for latency profiling.
Re: Ask HN: What problem are you close to solving and how can we help?
#18Re: Ask HN: What problem are you close to solving and how can we help?
#19https://free-visit.net : Like Matterport but with an FPS game engine. I am looking for my first client: Ideally someone in charge of a Museum/gallery or other grandiose indoor space.