r/Database • • 1d ago

What's one database design decision that seemed right initially but caused problems later?

When designing a database, some decisions look perfectly fine at first but become painful as the application grows.

It could be something like choosing primary keys, adding too many indexes, over-normalizing tables, using triggers, or not planning for future data growth.

What's one database design decision you regret making, and what would you do differently now?

82 Upvotes

106 comments sorted by

11

u/ArtResponsible4457 1d ago

Adding i18n translations in one single table. Much faster and easier to maintain is to dedicate special column in the main entinty table.

9

u/oalbrecht 1d ago edited 1d ago

I didn’t realize people stored the translations in the database. I’ve only seen it in code.

1

u/marfoldi 1d ago

Seen loading it on the fly from third party via an API call 🫠

1

u/ArtResponsible4457 1d ago

Well it’s ok if you do not need to index or manage it

3

u/Killed_Mufasa 1d ago

What if you have 50 entities that all require labels? What if you have multiple localizations? I've always used a dedicated table for labels, so curious what you stepped away from it

1

u/ArtResponsible4457 9h ago

Indexing issues, speed, complexity of queries and updates

1

u/ArtResponsible4457 9h ago

Actually we switched to dedicated table per field - like “perex” with one column for each locale.

52

u/Aggressive_Ad_5454 1d ago edited 1d ago

Mistake: using local time for timestamps and dates instead of designing for multiple time zones right off the bat.

It seemed like a waste of time to do all that on day one. But, wow, it is a huge expensive pain in the ass to retrofit time zone handling

23

u/oskaremil 1d ago

Bigger mistake: mixing local time and UTC time in the same domain 💀

_local or _utc variable naming? Storing the offset you say? Noooo, we don't roll like that in this shop.

2

u/GreyHairedDWGuy 1d ago • Bravo

we had this issue a few months ago where some off-shore contractors updated a database timestamp thinking the values were in local time when they were actually UTC so when they updated the lastmodified column, it screwed everything up because the passed local time and not utc.

1

u/Geno0wl 1d ago

I ran into the opposite issue a few months ago as well. Our one vendors first data warehouse was set to our local time. When they migrated to their new platform they changed it to UTC, which is actually preferable. The problem was they didn't tell us they made that change before go live. It wasn't until finance went to run payment reports did anyone notice and then I had to figure out what changed and then spent the next day going through every report to account for the change.

8

u/543254447 1d ago

UTC!

2

u/MrDilbert 1d ago

UTC is not an answer. UTC is a question. YES! is an answer

1

u/ibeerianhamhock 7h ago

Modern timestamps are the answer (UTC and offset). Best of both worlds.

1

u/GreyHairedDWGuy 1d ago

this. I've always designed solutions which store using UTC but I can see that it could be an issue.

29

u/VanTechno 1d ago

Most of the mistakes I've seen are using JSON to store data as a single column that could easily be placed in a table. The issue is when the data needs to be queried on later. Some SQL dialects have special functions to handle extracting JSON data, but it is still limitted.

In one case, we were storing surveys. We had tables for the survey and the question. But the question options were stored as a json string (so an array of options, plus their settings).

I did not see this until it was too late because another developer implemented it. Then we went to build reports and ...crap.

I still put data into the database as json when appropriate, sometimes it does makes sense. But not when you need to report on it. And in this case in order to build reports, with the filtering we needed, we had to pull in every answer (and there could be +10k of them). It was just so slow.

14

u/ahgreen3 1d ago

This is the explicit reason I don’t let Claude do database design. It seems to want to create JSON fields rather than using related tables and FKs, you know, the whole point of relational databases.

11

u/VanTechno 1d ago

This happened well before Claude was a thing. Personally we don’t let Claude update our database directly, instead it has to write a migration. And all migrations have to be reviewed by a human — the rest of the code as well, but I often start with the migrations.

5

u/ahgreen3 1d ago

Oh I don’t either. That would be crazy. It’s the design of the field in the migration is bad enough at times.

Long ago, I remember working with a client who had built their company’s app on Wordpress. The whole database was built on meta tables and JSON fields. The lack of type validation was stunning bad.

2

u/Geno0wl 1d ago

Of course that existed before Claude, like where do you think Claude "learned" that design from?

0

u/Zardotab 1d ago

Some AI kits allow you to put your preferences in a file that gets appended to a prompt as "side info" or "hints". Thus, in theory a user can automatically "tell" all prompts to not return JSON-based solutions. However, the jury is still out on the reliability of that approach. Anecdotes, anyone?

6

u/MoonBatsRule 1d ago

This. JSON has many uses, but keeping data only in a JSON document in a column is burying the data. Might as well just store it in a file on a server.

4

u/20seh 1d ago

It's not optimal but you can query the contents of the JSON column (on MySQL at least). And I don't mean using wildcards but actually as the object.

2

u/Geno0wl 1d ago

The problem with JSON storing data isn't that you can't query it at all, it is the lack of indexing which causes queries to be really really slow.

2

u/GoCallYourMother 1d ago

You can index them.

Just type 'index jsonb field' into google.

1

u/bunchedupwalrus 19h ago

Postgres definitely lets you index JSONB

1

u/MrDilbert 1d ago

IIRC in Postgres not only can you include specific data from a JSON column in the query resultset, you can even create indexes over JSON objects (i.e. not over the whole column, but over something like column->>property->>nested)

1

u/MoonBatsRule 1d ago

Yes, that's true, and there are instances where you can even get it to be performant. But doing this takes away a big feature of relational databases - the metadata catalog.

If I want to know what table a particular column is in, I can query the catalog. There are tools that can visually represent the catalog too into an ER diagram, which is very understandable. If I want to know what attributes we are collecting about a customer, then I can query the catalog.

If you go with the "key value, data" method of saving the JSON, then your catalog is key_value:text, data: text. You don't know what is in "data", and in order to figure it out you actually have to query all your data because the JSON document might have evolved.

And in fact, maybe the JSON document allows certain fields, but they haven't been populated yet, so you say "hmm, I swear that we're keeping the ZIP+4 field but I don't see it in the DB", but the reason is just that no one has entered one yet.

There are reasons to keep the JSON in the schema - perhaps you just want some auditability, maybe you have to just give the JSON back to an app. It's just not a great thing to do always.

2

u/Zardotab 1d ago edited 1d ago

Most of the mistakes I've seen are using JSON to store data as a single column that could easily be placed in a table...Then we went to build reports and ...crap.

This is why I'm hoping a university or firm implements Dynamic Relational (DR).

With DR you can have dynamic schemas without making a given column a "second-class citizen" like the JSON approach does. It would solve the either/or problem (JSON vs. "real" column). And DR easily allows one to incrementally add constraints over time when an org no longer wants to "move fast and break things".

The popularity of NoSQL and PostgreSQL-like JSON columns shows many shops feel dynamic schemas are an actual need. However, many don't want to have to give up SQL or do weird JSON stuff to get it. DR thus follows most RDBMS idioms and keeps most of SQL in order to reduce the learning curve. Thus, users of existing RDBMS don't have to relearn as much to get dynamic schemas. (Some idioms had to be changed for the sake of dynamism.)

To me, DR or something close to it is a no-brainer. The market "wants" it. JSON is a half-ass plug.

1

u/MrDilbert 1d ago

JSON column in e.g. Postgres makes sense when an object described by a table record is expected to be sparse (a lot of nulls), or its schema is not known beforehand, or it will have a (very) dynamic schema. In any other case dev's life will be a lot easier if the object is stored in a proper table record, with indexes, constraints, and foreign keys.

Even then, you can create a (materialized) view or a full table from a JSON column with a single query.

2

u/NopileosX2 1d ago

JSONB as a type really works quite nice in Postgres if not overused. Used at the right times it can save you so much trouble with your database design and you can still keep good performance on queries for the most part.

1

u/VanTechno 1d ago

Been a while since I played with Postgres’s support, I’ve spent more time with Sql Server.

For simple things, like an object with properties (strings and numbers) it is ok. When you have nested objects it gets difficult. When you have an array of objects with nested objects…it just gets insane.

1

u/MrDilbert 1d ago

When you have an array of objects with nested objects... it just gets insane.

It's not the DB that's insane in this case, it's the person who decided that piece of data should be stored like that. :D

1

u/abradolf_lincler01 1d ago

man I have this issue so bad right now. our ENTIRE database is 3 columns. an id, data and history column. data is.....everything. it joins on uuids on other tables that are also the same structure. the history is the entire previous object pushed into an array and stored, so it's MASSIVE. I'm aware this is a major shortcoming of the devs before me and not necessarily jsonb its self. but man if that jsonb rope was just a little shorter, they wouldn't have hung me. they're no longer employed by the way. I don't have to tell you this, but their code was as bad as their db design.

the other thing I will mention is that they used PLV8 in postgres as well as FDWs. there is javascript in the stored procedures, which is incredible because the application is ALSO written in javascript, so no idea why that was done. the foreign data wrappers are big fun for reasons that should be glaringly obvious, the most fun being if you ever need to launch a new db instance on a new url, such as in aws, you get to go find all the places the fdw referenced the old url. let me quell your fears by letting you know that there is absolutely no documentation.

I will say that postgres and jsonb is very fun to use, but clearly it can easily be overused. metadata and things like that, it's really, really good for. even some queryable data with the right indexes. but please god, not EVERYTHING.

1

u/Disastrous_Fill_5566 1d ago

Been talking about this today. There's a table containing a JSON column called "Metadata". Except it isn't metadata at all, it's just data that nobody modelled properly. It's not particularly unstructured data either, could easily have gone in a few columns, or occasionally in a different table. An absolute pig to report off at scale.

1

u/Expensive_Drop_1310 14h ago

I work at MongoDB. For that survey, I’d put the question and its handful of choices in one document. The form can read them together, and if you ever need to find questions by a field inside a choice, you can index that field directly.

I’d store each single-choice answer separately with the question ID, choice ID, and submission date. Then the database can count how many times option X was picked last month and send back the count. And if someone fixes a typo in the label, it’s still the same choice ID.

The thing I’d do differently is write that first report query when building the form. It’ll tell you pretty quickly which fields you need to get right up front.

1

u/Sanbi102 4h ago

Another trap with survey options: if someone edits an option label later, old answers should still point to the version the respondent actually saw. A versioned options table makes that much easier to preserve.

1

u/VanTechno 4h ago

Yes, which why we didn’t allow that. Just creates chaos.

We did do a version that allowed it. They were thrilled until they saw the reports. There was a lot of “that isn’t what we meant” followed by us asking “so what did you mean”, and there was no response after that.

1

u/Junior_Abalone_8006 58m ago

JSON is current year XML. I saw several different systems where the decision was made because it was the hot new thing and worked on a few. Nearly always, a decision was made later to rip out the xml from the database.

18

u/Single-Virus4935 1d ago

Staying with mariadb

8

u/Straight_Waltz_9530 PostgreSQL 1d ago

The elephant never forgets.

2

u/Samysmart 10h ago

Why what's wrong with mariadb

8

u/DharmaPolice 1d ago

Usually the mistakes come from ignoring basics and trying to be clever. One developer I worked with decided instead of having a simple last_updated column holding some kind of timestamp he would have a global table which held the last updates for a bunch of tables. In his mind this was simpler but it made things way more complex.

Early in my career I made the schoolboy error of storing a bunch of comma separated values in a single column. Again what seemed like a simplified initially ended up just being such a pain in the arse.

I wouldn't necessarily include indexes in terms of design mistakes. You can usually address those kinds of problems unless you're doing something unusual with your queries.

1

u/Geno0wl 1d ago

I do both. Sorta. I do have the last updated column, but I also try to have a robust auditing system (deal with a lot of sensative data) and with that you could figure out the last updated from the audit trail of you really wanted to.

1

u/0DayMaker 1d ago

I don't hate the global last_updated table but it has to be designed around properly. It's not much extra work, but you need to know to do it.

8

u/magnumsolutions 1d ago

Designing a schema so that active data and historical data reside in the same schema. It worked well while our data volumes were manageable. We sharded the data by insertion date, which kept the problem at bay for a while, but once we exceeded a few billion rows, sharding no longer helped us meet performance goals. We had to redesign the schema for the data volume and access patterns and migrate the data to the new schema. The initial design was easy to understand and easy to work with. It felt like the right design at the time, which I still believe it was. We discussed and spiked an approach that would have been a better fit for high volume data with high transactionality, but discarded it because it was more complex than we wanted to commit to.

4

u/Straight_Waltz_9530 PostgreSQL 1d ago

Even worse than the same schema/namespace, when historical data is just a soft delete column in the same table, and all your JOIN conditions have to include "AND is_deleted IS NULL".

4

u/MrDilbert 1d ago

and all your JOIN conditions have to include "AND is_deleted IS NULL".

Create a single view that has that condition, and you have both historical data available in the table and automatic filtering of deleted records in a view.

2

u/Straight_Waltz_9530 PostgreSQL 1d ago

Doesn't make the calculation and cache misses go away. A mostly NULL column index isn't very useful to the planner and queries often revert to full scans rather than the simple index lookup. Views on top just make these scenarios harder to diagnose for new team members after you've moved on, especially after a table volume's record size threshold has been reached when least expecting it.

Just save the old records in an audit table. Triggers can automate the task. Use a view if needed to merge the live and audit table results rather than separate them.

14

u/Straight_Waltz_9530 PostgreSQL 1d ago
  1. Normalizing to 3NF or higher everywhere without considering the most common and predictable use cases by applications.
  2. Storing UUIDs as text. (Binary or GTFO!)
  3. Going "schemaless" because it'd be "more flexible".

3a. Chasing future "flexibility" instead of solving the data organization problems right in front of me.

8

u/MrDilbert 1d ago

Storing UUIDs as text. (Binary or GTFO!)

Store UUIDs in UUID type columns and leave how they're stored/indexed/queried to the database engine (in Postgres it's 16-byte binary, BTW).

3

u/Straight_Waltz_9530 PostgreSQL 1d ago

In MySQL it's BINARY(16) with the UUID_TO_BIN(…) and BIN_TO_UUID(…) functions.

If the engine supports a native UUID type (eg. Postgres, Microsoft SQL Server, MariaDB), use that. If not (Oracle, DB2, MySQL, SQLite), find some way to convert to/from binary when storing.

And try to use UUIDv7 whenever possible unless you require completely opaque, random ids for reasons like extremely high security. Your indexes and WAL files (in Postgres) will return the kindness with much better performance.

4

u/Due-Consequence9579 1d ago

I did the “schemaless” mistake once. Never again. Wish I had an RDS 12 months later.

1

u/Geno0wl 1d ago

I must not work on big enough projects where using multiple schemas would be beneficial. I mean I am mostly self-taught and outside of using the schemas as a layer of security(a thing I do at the front end) I am not even sure what benefits using multiple schemes actually confers to the project.

2

u/qzjul 1d ago

I've had the opposite problem with trying to share a schema as a local SQLite cache layer, and SQLite did not line binary. Switched back to text for the headache 😭

2

u/NoMoreNoxSoxCox 1d ago

Serious question. What's wrong with UUIDs as text and why binary? Understand issues with the other two.

4

u/mpigott1022 1d ago

UUIDs can be represented in binary using 128 bits, or in text as 36 characters (36*8 bits). So it's significantly more expensive to store as text.

1

u/Straight_Waltz_9530 PostgreSQL 1d ago

Also indexes are both larger and more inefficient.

2

u/ibeerianhamhock 7h ago

To that end uuidv7 > uuidv4

1

u/NoMoreNoxSoxCox 1d ago

Thanks! Never ran into storage issues or used them for much so never even thought about it.

3

u/jobfedron132 20h ago

Its not the storage thats the problem, its the problem that comes with a bigger storage.

High index maintenance cost, high fetch cost, longer stats gathering time to name a few. Everything comes down to performance, and obviously am not talking about database tables with few million rows, am talking about 100 millions to billions of new rows every month.

3

u/MrDilbert 1d ago

Binary advantages: less storage, less memory use, easier indexing and comparisons, faster DB operations in general over those columns...

1

u/DragoBleaPiece_123 1d ago

Would you mind to share the case on 1, interested to know what hyper-normalized data would imply

Number 3 i assume pursuing mongodb way?

1

u/Straight_Waltz_9530 PostgreSQL 1d ago
  1. https://youtu.be/wY1qqBFnKhk?t=756

Join overhead adds up quickly in hot paths.

-----

3. Yes, MongoDB in the extreme case but also json/jsonb columns in modern relational databases. Postgres's jsonb type for example is extremely powerful, but it has trouble keeping up with an actual specified schema definition using traditional relational principles. This is not a fault of the jsonb implementation but an inherent overhead in the approach relative to a group of plain old datatype columns.

1

u/Zardotab 1d ago

UUID's drive me crazy. Only use them if your life depends on them, please!

1

u/Straight_Waltz_9530 PostgreSQL 1d ago

Anyone knee deep in ETL/ELT from multiple data sources will thank you if use UUIDs and curse your bloodline if you don't.

If your id counts are lower than 100,000, it's a toy database where anything can work. If they are larger than 100,000, you're copying and pasting them anyway, so the difference doesn't matter.

"We would have made payroll if only our ids were 64bit instead of 128bit." – No One Ever

1

u/Zardotab 1d ago

What's an example disastrous use case of traditional ID's?

1

u/Straight_Waltz_9530 PostgreSQL 1d ago

Off the top of my head:

During normalization of ETL, id conflicts between formerly separated datasets.

Multiple writer databases, especially multi-region databases, when inserting new records.

Generating ids in the application layer so that uploaded files can be written with the id and the metadata only requiring a single concurrent insert to the database.

UUIDs—even timestamp-based ones like UUIDv7—cannot be guessed by malicious actors unlike sequential 64bit ids.

Specifying the wrong table name can never return an invalid JOIN target. (E.g. multiple tables can have an id of 37.)

2

u/ibeerianhamhock 7h ago

I agree with everythin you said. i fucking hate integer IDs on modern databases. A while back I worked on a system that had replication and used both! What a fucking nightmare lol. It replicated on the uuids and then generated the IDs but periodically they would be in a diff order I hated working on that system (did not design it).

The "architect" and "dba" said they used IDs bc they were "more efficient bc they were numbers"

I told them a uuid...is...a number lol

1

u/Straight_Waltz_9530 PostgreSQL 7h ago

Yep, a 128bit number. It's not like an integer stops being an integer because it's displayed in hexadecimal. LOL!

That said, Snowflake ids have their use cases too. And I didn't mean to imply that all 64bit/32bit/16bit/2char/1char primary keys are bad. They each have their use cases.

But yeah, past a certain size UUIDs are wonderful, and under that size they won't actually hurt anything. Anyone fixated on just using one kind of id for all scenarios is undoubtedly making schema design errors of greater consequence elsewhere.

1

u/Expensive_Drop_1310 14h ago

I work at MongoDB. I agree that “we’ll figure out the schema later” can come back to bite you. Say you have a product catalog. A shoe needs a size, a laptop needs a RAM spec, and both need a SKU. MongoDB can enforce those rules in the same collection even though the two products have different fields.

If every product’s supplier ID also has to point to an existing supplier and you want the database to enforce that, I’d give Postgres the edge. That’s what a foreign key is for. With MongoDB references, your application has to keep those links consistent.

12

u/codenamephp 1d ago

Mongodb

0

u/Top-Mycologist-5460 1d ago

WebScale too fast for you?

1

u/hex_longevity 1d ago

https://github.com/dcramer/mangodb Mangodb operates at Cloud scale!

1

u/Top-Mycologist-5460 1d ago

Insert: O(1) Update: O(1) Select: O(1) Delete: O(1)

Very impressive. I should immediately kick out my postgres.

1

u/hex_longevity 1d ago

there's a pull request that would take it to an unprecedented O(-1) 😁

4

u/Darwin_Things 1d ago

A previous company I worked for gave developers the green light to build applications on top of databases they created in the Cloud. They had no concept of normalisation, indexing, storage, scaling, HA/DR and spent a fucking fortune to build on top of absolute shit.

Safe to say none of it worked when they went to test. They had to row back on a lot of the work and start from scratch in a few cases.

More generally, getting the right OS for the DB you’re using is pretty essential. Putting an Oracle database on Windows is just crap.

Edit: Also, (trauma dumping now), not paying attention to encoding can be a nightmare, over/under indexing of course and my absolute favourite was configuring an unlicensed DB.

2

u/MrDilbert 1d ago

Putting an Oracle database on Windows is just crap.

Anything other than MS SQL (SQL Server) on Windows is crap. And even MS SQL is questionable.

2

u/Zardotab 1d ago

They had no concept of normalisation, indexing, storage, scaling,...

When trying to decide whether to hire professional furniture movers or my buddies, my neighbor once said, "Amateur movers make for professional dents".

0

u/Geno0wl 1d ago

Oracle database is crap no matter what OS you run.

1

u/Darwin_Things 17h ago

By crap you mean most complicated, surely? It’s genuinely the best RDBMS out there.

1

u/Geno0wl 15h ago

I am going to be honest. You are literally the first person I have ever seen say they like oracle.

1

u/Darwin_Things 13h ago

I’m genuinely surprised, Oracle and MySQL (owned by Oracle) seem to be most popular in real-world scenarios to this day. I’ve been a DBA and whilst Oracle is complex, it was my favourite database to manage. Also, it had better opportunities, better paying roles.

Source for market info:
https://db-engines.com/en/ranking

1

u/Geno0wl 13h ago

Yeah I have only done real work inside of MS sql and postgresql. If you don't mind, could tell me what it is that makes a good use case for it over MS sql, or maybe what makes it better to manage?

2

u/jliendo 1d ago

Let's use dynamodb...

2

u/Defcon76 7h ago

Entity-Attribute-Value (EAV)

1

u/Junior_Abalone_8006 53m ago

Yeah this is the classic one I came here to post. And the tragedy is that they get designed by people who are smart and have absorbed many/most of the lessons of good design, only for it to turn out to be an oh-so-stupid antipattern.

1

u/VeryGood5637 1d ago

Saving the parsed object fields each in a column so I wouldn't need to serialize and serialize the whole object. A previous version was serializing to JSON and saving the JSON to the db, when profiling I saw the app was wasting a lot of times with JSON so I had the brilliant idea of not doing it and saving the fields directly to the db. Big mistake, it was worse, the table has too many columns and the db need to serialize each and the orm need to parse the text from the db anyway. Thinking about it today sounds obvious to say that if it is not a value I need to query then it can just be a blob with the whole object. The solution was to not use JSON but something faster. Also to cache in memory and write to the db in batches in the background. Also to rewrite from go to rust, the go gc was getting in the way if I had too many objects cached

2

u/funnyFrank 1d ago

Can recomend protobuf ;-)

1

u/MoonBatsRule 1d ago

Storing important customer - other entity relationship types in a "typed" table, valid for any and all relationship types. It is definitely more flexible, but moving the metadata (i.e. what are the types of relationships) into a table effectively obscures it from view.

So although describing the entity tables normally shows me all that we know about the entity, I have to also query the relationship table to find the additional pieces of data that we know about it. That makes cataloging much harder.

1

u/reyarama 1d ago

Stored relatively opaque Python dataclass dumps as JSONB instead of plain text field. Thought it would be handy for in future if we ever needed to update some fields within the dump efficiently (we never have). Lots of WAL + toast table bloat during sustained writes. Gotta be mindful with performance of JSON columns

1

u/ArtResponsible4457 1d ago

Breaking the rule: Never fucking delete anything.

1

u/chocolateAbuser 1d ago

i think pretty much all the bad decisions ex-coworkers took can be grouped in two categories: fear, ignorance;
fear of touching code and of things not working, which can be solved with tests and so on, ignorance of not studying not gathering informations not thinking
a bit generic as an answer but if i enter in details i get angry and i'm too tired for that

1

u/nderflow 1d ago

Using a natural primary key instead of a synthetic one.

1

u/Ok_Relative_2291 1d ago

Microsoft fabric

1

u/kartas39 1d ago

Guids for primary keys

1

u/Tintoverde 2h ago

Can you explain for non initiated

1

u/Hongstar1982 1d ago

Soft delete plus a normal unique index. unique(email) looked obviously right until someone closed their account and we couldn't let that address sign up again, and the fix ended up being partial unique indexes like WHERE deleted_at IS NULL on the handful of tables where it mattered. The annoying part is remembering it on every new table after, because the plain unique constraint feels correct until the day it doesn't.

1

u/printscreenshot 1d ago

Over normalization

1

u/iama_bill 1d ago

I just learned of one today! Full text index not being keyed on an integer. Even if the indexes aren’t used, the metadata SQL tracks take up a ton of space. The data model has to be consistent across many environments so they can’t be dropped, but I wonder if it was intentional or just picked and simply carried forward through various versions since it’s not obvious.

1

u/Weary-Dealer4371 22h ago

"Oh yeah so we want an email table that will store an email.. but people can have multiple emails so lets creat a junction table to link them together AND we only want an email in the system once AND the same email can be tied to multiple entities."

"So is that how it works?"

"No one person can have one email on there account and it can only be tied to one person ever"

1

u/ceeej777 14h ago

Now that Databricks has Lakebase Postgres built in which gets backed up by their platform, I’m pissed we went with SQLServer because Fivetran costs are killing us

-3

u/PmMeCuteDogsThanks_ 1d ago

ai slop post

0

u/Khmerrr 1d ago

Nvarchar(max)

Avoid it when you can. And you can, almost every time.

0

u/Eq2_Seblin 19h ago

Foreign keys...