shift-board / shiftboard

MIT License
0 stars 0 forks source link

Database model reconsideration #15

Closed shari09 closed 3 years ago

shari09 commented 3 years ago

Right now because of how the photo is stored as a blob, it can either:

wang-joseph commented 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).

wang-joseph commented 3 years ago

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.

shari09 commented 3 years ago

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.

wang-joseph commented 3 years ago

Yeah, sure thing!

wang-joseph commented 3 years ago

This should be addressed by #17

shari09 commented 3 years ago

Great! I'll link the PR and then close this issue