﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on NH Prof New Feature: Alert on bad ‘like’ query</title><description>David,
  
You write a linq extension
</description><link>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment8</link><guid>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment8</guid><pubDate>Sat, 11 Dec 2010 05:15:39 GMT</pubDate></item><item><title>David Neale commented on NH Prof New Feature: Alert on bad ‘like’ query</title><description>Is there any way to use full text indexes without having to resort to HQL? I use LINQ to implement a specification pattern and can't think of a way to introduce HQL to this.
</description><link>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment7</link><guid>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment7</guid><pubDate>Fri, 10 Dec 2010 10:03:02 GMT</pubDate></item><item><title>Steve commented on NH Prof New Feature: Alert on bad ‘like’ query</title><description>David,
  
  
Honestly, I've met a lot of developers who really don't understand how SQL works under the hood, so they might not be aware that this type of query does a full table scan.  Especially when the code they write is .Contains("EF").
  
</description><link>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment6</link><guid>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment6</guid><pubDate>Thu, 09 Dec 2010 19:50:49 GMT</pubDate></item><item><title>Ayende Rahien commented on NH Prof New Feature: Alert on bad ‘like’ query</title><description>Variant,
  
You use the database full text indexes, or Lucene.
</description><link>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment5</link><guid>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment5</guid><pubDate>Thu, 09 Dec 2010 12:40:23 GMT</pubDate></item><item><title>Duncan Godwin commented on NH Prof New Feature: Alert on bad ‘like’ query</title><description>That should be date parts.
</description><link>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment4</link><guid>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment4</guid><pubDate>Thu, 09 Dec 2010 12:17:34 GMT</pubDate></item><item><title>Duncan Godwin commented on NH Prof New Feature: Alert on bad ‘like’ query</title><description>Nice feature!  I supposed the equivalent for dates would be really easy to implement as well :)
</description><link>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment3</link><guid>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment3</guid><pubDate>Thu, 09 Dec 2010 12:16:33 GMT</pubDate></item><item><title>David Neale commented on NH Prof New Feature: Alert on bad ‘like’ query</title><description>Why did you choose to make this alert an error as opposed to an alert? Are there not times when an open query like this is necessary?
</description><link>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment2</link><guid>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment2</guid><pubDate>Thu, 09 Dec 2010 12:05:06 GMT</pubDate></item><item><title>Variant commented on NH Prof New Feature: Alert on bad ‘like’ query</title><description>That makes sense. Is there a "right" way to allow in-string search?
</description><link>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment1</link><guid>http://ayende.com/4717/nh-prof-new-feature-alert-on-bad-like-query#comment1</guid><pubDate>Thu, 09 Dec 2010 10:53:57 GMT</pubDate></item></channel></rss>