-
What do I need to do to host files inside the database apart from placing them in the table as instructed? I use the official binaries for Windows. Can I use it for this purpose? Can I host some files on disk and some in the database? If yes, what is the search logic? It makes sense to host small files, which are not actively edited in the database, such as images/icons. Larger files or files being actively edited might be better left on disk directly. |
Beta Was this translation helpful? Give feedback.
Answered by
lovasoa
Jun 20, 2024
Replies: 1 comment 10 replies
-
Hello !
CREATE TABLE sqlpage_files(
path VARCHAR(255) NOT NULL PRIMARY KEY,
contents BLOB,
last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
|
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
pchemguy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello !