in reply to Re^7: How to interpolate sql-output
in thread How to interpolate sql-output
Join might be better than subquery. And as far as I can see, that data.key can be multiple with ors or even in and like/ilike should work also.
I have tables empty (=just couple of lines) and subquery is faster than window-join. 1.1ms vs 1.4ms. No indexes. Postresql v8.4.22, Debian 6.0.10
Usually there should be vacuuming of some kind. Just transfer old to history.
Do you have any projects in mind, where Perl-code is stored in db?
There is ofc limit how much views etc one should put to db. Sometimes it's better to do with code than in db.
Views are nice, when you want to limit permission of some user. There are few things in on update and on delete.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: How to interpolate sql-output
by chacham (Prior) on Jan 15, 2015 at 15:06 UTC |