SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
7.37k stars 517 forks source link

Allow the use of SmartString for strings #2338

Open schungx opened 2 months ago

schungx commented 2 months ago

In databases there are a lot of textual codes, most of which are short.

Using smartstring (or equivalent) may result in performance improvement, although I have not benchmarked it.

The idea being that of avoiding allocations for short strings, which should be the majority of text in a database.

Is there a way to override the default mapping for string data types to SmartString?