| От | Chris Ochs |
|---|---|
| Тема | best practice for use of functions.. |
| Дата | |
| Msg-id | 04b901c3daed$a3e67680$b9042804@chris2 обсуждение исходный текст |
| Ответы |
Re: best practice for use of functions..
|
| Список | pgsql-general |
My application does between 20-40 inserts per transaction. I am putting all of them into functions to limit the calls from the DBI to the database. My preferred method is to have a function for each table that I do an insert into, it's easier to manage that way and a lot easier to make changes if I add/drop columns and tables. Right now I have one function that is called by my application that in turn calls all the other functions. I am wondering is there is a significant overhead for calling say 10 functions from within a function compared to putting everything into one single function? Or are there other reasons why I would want to do it differently? Chris
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера