>
>
>
> As I understand it the id's get rebuilt if you export a table as csv-file
> and import it on another computer. When the whole database gets exported
> and imported the relationships stays consistent.
>
>
Yes, I've learned this the hard way. Moving the database between computers
is OK if you use the native database backup method, but you definitely lose
database portability via DAL if you expose IDs in URLs. We don't use UUIDs
for URLs, but rather hashes that can be truncated (and possibly
base64-encoded (URL-safe)) to keep the values brief.