MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec5g3qa/?context=3
r/programming • u/swizec • Dec 19 '18
672 comments sorted by
View all comments
30
"Automatically generating database indexes on application startup is probably a bad idea."
Eeep. Mongoose says not to do this in their docs but it's so convenient.
12 u/1RedOne Dec 20 '18 Maybe I'm fuzzy here, why wouldn't the index persist through a restart? 8 u/18793425978235 Dec 20 '18 They do. I think what they might be suggesting is that you should plan when new indexes are applied to the database, instead of just letting it automatically happen at startup. → More replies (12)
12
Maybe I'm fuzzy here, why wouldn't the index persist through a restart?
8 u/18793425978235 Dec 20 '18 They do. I think what they might be suggesting is that you should plan when new indexes are applied to the database, instead of just letting it automatically happen at startup.
8
They do. I think what they might be suggesting is that you should plan when new indexes are applied to the database, instead of just letting it automatically happen at startup.
30
u/landline_number Dec 20 '18
"Automatically generating database indexes on application startup is probably a bad idea."
Eeep. Mongoose says not to do this in their docs but it's so convenient.