#foreignkey — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #foreignkey, aggregated by home.social.
-
One DELETE Cascades To 3.5 MILLION Rows?!
PRODUCTION APOCALYPSE! Deleted ONE user and CASCADE deleted 3.5 MILLION rows across 4 tables! Orders, payments, everything GONE! This is the scariest SQL behavior! Watch this nightmare!
#sql #sqldisaster #cascadedelete #foreignkey #productionbug #dataloss #sqlfails #massdeletion #sqlshorts #databasedisaster #sqlwtf #cascadenightmare
-
One DELETE Cascades To 3.5 MILLION Rows?!
PRODUCTION APOCALYPSE! Deleted ONE user and CASCADE deleted 3.5 MILLION rows across 4 tables! Orders, payments, everything GONE! This is the scariest SQL behavior! Watch this nightmare!
#sql #sqldisaster #cascadedelete #foreignkey #productionbug #dataloss #sqlfails #massdeletion #sqlshorts #databasedisaster #sqlwtf #cascadenightmare
-
One DELETE Cascades To 3.5 MILLION Rows?!
PRODUCTION APOCALYPSE! Deleted ONE user and CASCADE deleted 3.5 MILLION rows across 4 tables! Orders, payments, everything GONE! This is the scariest SQL behavior! Watch this nightmare!
#sql #sqldisaster #cascadedelete #foreignkey #productionbug #dataloss #sqlfails #massdeletion #sqlshorts #databasedisaster #sqlwtf #cascadenightmare
-
# #dt260208
# #sql
# #primarykey
# #foreignkey
# #SQLiteI had chatgpt refactor the bookbiz database schema (from PracticalSQL book 2nd ed). It added primary and foreign keys. I then had it refactor for SQLite specifically.
https://chatgpt.com/share/69894b9c-b944-8008-b758-b283987b4086
...
Highlights:
1. SQLite-Idiomatic Schema (Clean Rewrite)
Global settings (critical in SQLite)
PRAGMA foreign_keys = ON;
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL; -
# #dt260208
# #sql
# #primarykey
# #foreignkey
# #SQLiteI had chatgpt refactor the bookbiz database schema (from PracticalSQL book 2nd ed). It added primary and foreign keys. I then had it refactor for SQLite specifically.
https://chatgpt.com/share/69894b9c-b944-8008-b758-b283987b4086
...
Highlights:
1. SQLite-Idiomatic Schema (Clean Rewrite)
Global settings (critical in SQLite)
PRAGMA foreign_keys = ON;
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL; -
# #dt260208
# #sql
# #primarykey
# #foreignkey
# #SQLiteI had chatgpt refactor the bookbiz database schema (from PracticalSQL book 2nd ed). It added primary and foreign keys. I then had it refactor for SQLite specifically.
https://chatgpt.com/share/69894b9c-b944-8008-b758-b283987b4086
...
Highlights:
1. SQLite-Idiomatic Schema (Clean Rewrite)
Global settings (critical in SQLite)
PRAGMA foreign_keys = ON;
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL; -
# #dt260208
# #sql
# #primarykey
# #foreignkey
# #SQLiteI had chatgpt refactor the bookbiz database schema (from PracticalSQL book 2nd ed). It added primary and foreign keys. I then had it refactor for SQLite specifically.
https://chatgpt.com/share/69894b9c-b944-8008-b758-b283987b4086
...
Highlights:
1. SQLite-Idiomatic Schema (Clean Rewrite)
Global settings (critical in SQLite)
PRAGMA foreign_keys = ON;
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL; -
# #dt260208
# #sql
# #primarykey
# #foreignkey
# #SQLiteI had chatgpt refactor the bookbiz database schema (from PracticalSQL book 2nd ed). It added primary and foreign keys. I then had it refactor for SQLite specifically.
https://chatgpt.com/share/69894b9c-b944-8008-b758-b283987b4086
...
Highlights:
1. SQLite-Idiomatic Schema (Clean Rewrite)
Global settings (critical in SQLite)
PRAGMA foreign_keys = ON;
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL; -
Keys in DBMS | Super Key| Candidate Key| Primary Key| Foreign Key |DBMS Lect 14| Shanu Kuttan |Hindi
DBMSKeys #SuperKey #CandidateKey #PrimaryKey #ForeignKey #AlternateKey #CompositeKey #Keys in DBMS This video ... source
-
Spent hours today looking for the following: I have a #Flask app with #sqlalchemy. I use #flaskadmin for a big part of functionality.
I need to pass a custom query for a select field that is a #foreignkey between Table A and table B. I try to accomplish that while being in the list view (the table view) for all entries in Table A, where each record has a foreignkey from Table B to only show those records in the select field for the foreignkey that are B.active==true.Is there a way to do this? -
Spent hours today looking for the following: I have a #Flask app with #sqlalchemy. I use #flaskadmin for a big part of functionality.
I need to pass a custom query for a select field that is a #foreignkey between Table A and table B. I try to accomplish that while being in the list view (the table view) for all entries in Table A, where each record has a foreignkey from Table B to only show those records in the select field for the foreignkey that are B.active==true.Is there a way to do this? -
Django 5.0 has been released 🎉
After months of work, everyone can use this great new version 🙌
My favorite features are:
• 🤖 generated fields
• ✅ database default values
• 🔑 prefetch related for generic foreign keysWhich are your favorite features?
https://www.djangoproject.com/weblog/2023/dec/04/django-50-released/#Django #GeneratedField #GeneratedColumn #Database #ORM #SQLite #PostgreSQL #MySQL #MariaDB #Default #ForeignKey #Django5 #Python #Python312 #Web #Framework #Release #ORM
-
Django 5.0 has been released 🎉
After months of work, everyone can use this great new version 🙌
My favorite features are:
• 🤖 generated fields
• ✅ database default values
• 🔑 prefetch related for generic foreign keysWhich are your favorite features?
https://www.djangoproject.com/weblog/2023/dec/04/django-50-released/#Django #GeneratedField #GeneratedColumn #Database #ORM #SQLite #PostgreSQL #MySQL #MariaDB #Default #ForeignKey #Django5 #Python #Python312 #Web #Framework #Release #ORM
-
Django 5.0 has been released 🎉
After months of work, everyone can use this great new version 🙌
My favorite features are:
• 🤖 generated fields
• ✅ database default values
• 🔑 prefetch related for generic foreign keysWhich are your favorite features?
https://www.djangoproject.com/weblog/2023/dec/04/django-50-released/#Django #GeneratedField #GeneratedColumn #Database #ORM #SQLite #PostgreSQL #MySQL #MariaDB #Default #ForeignKey #Django5 #Python #Python312 #Web #Framework #Release #ORM
-
Django 5.0 has been released 🎉
After months of work, everyone can use this great new version 🙌
My favorite features are:
• 🤖 generated fields
• ✅ database default values
• 🔑 prefetch related for generic foreign keysWhich are your favorite features?
https://www.djangoproject.com/weblog/2023/dec/04/django-50-released/#Django #GeneratedField #GeneratedColumn #Database #ORM #SQLite #PostgreSQL #MySQL #MariaDB #Default #ForeignKey #Django5 #Python #Python312 #Web #Framework #Release #ORM
-
Django 5.0 has been released 🎉
After months of work, everyone can use this great new version 🙌
My favorite features are:
• 🤖 generated fields
• ✅ database default values
• 🔑 prefetch related for generic foreign keysWhich are your favorite features?
https://www.djangoproject.com/weblog/2023/dec/04/django-50-released/#Django #GeneratedField #GeneratedColumn #Database #ORM #SQLite #PostgreSQL #MySQL #MariaDB #Default #ForeignKey #Django5 #Python #Python312 #Web #Framework #Release #ORM
-
Q: What sits between you and your Data? A: Identifiers! Read: #URI #LinkedData #PrimaryKey #ForeignKey #ODBC #NewSQL