Speeding up Database Constraints

Поделиться
HTML-код
  • Опубликовано: 14 ноя 2024

Комментарии • 21

  • @sergiidziubenko3313
    @sergiidziubenko3313 22 дня назад

    Few years ago I spent lot of time to discover this trick with parallel constraint “creation” :)

  • @marcelvanLare
    @marcelvanLare Месяц назад +1

    Nice. Once i thought to be clever and used not null novalidate as a constraint to stay, so that only new data would need to follow that. Only the other party would do a full refresh delete and insert on the table. That was a production issue then. I learned my lesson to have this only for temporary situations.

    • @DatabaseDude
      @DatabaseDude  Месяц назад +3

      Also, the optimizer can take advantage of validated constraints better than non-validated ones

  • @davidpasternak341
    @davidpasternak341 Месяц назад +2

    I totally like your videos. Big Kudos for your work.
    But now most important: I need this shirt!!! 😂

    • @DatabaseDude
      @DatabaseDude  Месяц назад

      Thank you! Shirt was from Singapore

  • @ilpaolotopleggend6663
    @ilpaolotopleggend6663 Месяц назад

    thanks!pls more video like this

    • @DatabaseDude
      @DatabaseDude  Месяц назад +1

      Always more to come!

    • @ilpaolotopleggend6663
      @ilpaolotopleggend6663 Месяц назад

      intresting to see more issues in data warehouse enviroment 😎 sql and pl/sql😎

  • @marcinbadtke
    @marcinbadtke Месяц назад

    Thank you

  • @khmansour1
    @khmansour1 Месяц назад +1

  • @andreas-wismann
    @andreas-wismann Месяц назад

    Is it feasible (i.e. a good idea) to leave the constraint in the NOVALIDATE state forever, for example if I cannot resolve 100% of the existing rows using the foreign key, but want to ensure that at least the new data is valid?

    • @DatabaseDude
      @DatabaseDude  Месяц назад +2

      Feasible ... yes. Advisable ... generally no, because the optimizer can do better things if it knows the data is valid. There is an option to use the RELY clause which tells the optimizer that things are valid even if they are not, but of course that then runs the risk of getting invalid results.

  • @prakash5935
    @prakash5935 Месяц назад

    How to resolve this sql string ora -12847 error

    • @DatabaseDude
      @DatabaseDude  Месяц назад

      It is a reparse warning. Try avoid DDL during the query runs

    • @prakash5935
      @prakash5935 Месяц назад

      @@DatabaseDude give some examples

  • @mustafakalayciDBA
    @mustafakalayciDBA Месяц назад

    your new laptop allows you to run many parallel sessions Conner :D (maybe your new laptop become old, I don't know, I do remember that you were looking for a new one on twitter :) )

    • @DatabaseDude
      @DatabaseDude  Месяц назад +2

      8 cores in my Asus G14. That's ample to get things moving along. (20 cores in the home desktop if I really need it :-))

  • @ViviCraft-rg5it
    @ViviCraft-rg5it Месяц назад +1

    GG