Just split your userid from behind. e.g.
UserID = 6435624
Path = /images/24/56/6435624
As for the backup you could use MySQL Replication and backup the slave
database to avoid problems (e.g. locks) while backuping.
More Related Contents:
- Storing Images in DB – Yea or Nay?
- To Do or Not to Do: Store Images in a Database [duplicate]
- Saving images: files or blobs?
- Storing a small number of images: blob or fs?
- Alternatives to Entity-Attribute-Value (EAV)?
- How does the HyperLogLog algorithm work?
- What are the differences between B trees and B+ trees?
- How to perform compound queries with logical OR in Cloud Firestore?
- Surrogate vs. natural/business keys [closed]
- What is NoSQL, how does it work, and what benefits does it provide? [closed]
- proper hibernate annotation for byte[]
- database vs. flat files
- First name, middle name, last name. Why not Full Name?
- Can we update primary key values of a table?
- Oracle (ORA-02270) : no matching unique or primary key for this column-list error
- How do I output the results of a HiveQL query to CSV?
- SQLite UPSERT / UPDATE OR INSERT
- Elastic search, multiple indexes vs one index and types for different data sets?
- In terms of databases, is “Normalize for correctness, denormalize for performance” a right mantra?
- Full-text search in NoSQL databases [closed]
- Import SQL dump into PostgreSQL database
- Multivalued Fields a Good Idea?
- Elasticsearch query to return all records
- wikidata get all properties with labels and values of an item
- Convert String ISO-8601 date to oracle’s timestamp datatype
- How should you build your database from source control?
- Strange behavior in PowerShell function returning DataSet/DataTable
- Populating Spinner From SQLite Database Android
- Maximum number of rows in a sqlite table
- Mysql service won’t start, InnoDB init function error