Search Postgresql Archives

Re: Trigger vs web service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/04/11 8:47 AM, Marc-André Goderre wrote:

1- Program a trigger function detecting the orginal insert, split the string and fill the other field.

2- Program a web service for receiving the string, split it and insert the informations in the db.

Witch is the fastest one (in performance).


I would expect parsing and splitting your string into fields before handing it to SQL would be faster than handing it into SQL, then using a trigger to hack it into 2 fields. This would, of course, at least partially depend on what sort of language that web service is written in, if its in some hypothetical horribly inefficient interpreted language, all bets are off.

Does all your data go through a web service now? if not, what data path IS it coming from?




--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux