Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.python Subject: Re: WP-A: A New URL Shortener Date: Fri, 18 Mar 2016 00:17:47 +0100 Organization: PointedEars Software (PES) Lines: 17 Message-ID: <1964524.jFVgOtWIx9@PointedEars.de> References: <1537bd9e261.12a0e5b4a204345.4468160629979098801@vmesel.com> <500E8DF1-DCAC-4923-BD94-06DA1716484A@vmesel.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1458256668 28406 eJwFwYEBwDAEBMCVyPMYRyX2H6F3DionjE7z9Y2QD/b0ikZXNhapTV6bep0mwvUzFaangfMDC/4QOQ== (17 Mar 2016 23:17:48 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 17 Mar 2016 23:17:48 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNyskBwCAIBMCWwrVoOYJs/yXE13wmDIJOR8CDwRIWn1hb5LtEd+SUaPoxytFbJ7L0W5hYOm2Xzjdge4/3D3QvFlw= Cancel-Lock: sha1:QBfTdgx03ihnlGH0WQFaTQqZcqg= X-NNTP-Posting-Host: eJwNwokRACEIBLCW+HY5ykHF/kvwJoFTuTMIBu5PkLGPThXbxTDu+HoqWqlRwXWuSc0ZW5b2AAYCEHM= Xref: csiph.com comp.lang.python:105171 Daniel Wilcox wrote: > Cool thanks, highly recommended to use an ORM to deter easy SQL > injections. That is to crack a nut with a sledgehammer. SQL injection can be easily and more efficiently prevented with prepared statements. While an Object- Relational Mapper (ORM) can use those, and there are benefits to using an ORM, avoiding SQL injection should not be the primary reason to use an ORM. In fact, using an ORM is often not only overkill, but effectively *reduces* application performance. -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.