Closed shari09 closed 3 years ago
I'll think about the connections between the API, frontend, and database and see how we can resolve this issue.
The database should be remodelled to move the images into a separate table though, since it apparently helps with querying according to a few StackOverflow posts I've read (which clearly are the most important and reliable sources).
Going to update the database so that Image BLOBs are no longer stored in the same table as the Board
model to promote search efficiency.
Can you also add a created_at
timestamp for the posts/boards, just so when the server were to load them it won't be in arbitrary order.
Yeah, sure thing!
This should be addressed by #17
Great! I'll link the PR and then close this issue
Right now because of how the photo is stored as a blob, it can either:
name
andcreated_at
attributes, the post will containname
,message
,photo.url
andphoto.name
. The url will be used as thesrc
attribute in the<img />
. It'll pass back a JSON obj like this: