<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.silverlight.net/forums/14.aspx</link><description>The perfect forum for asking the basic questions. No question too simple!</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/247889.aspx</link><pubDate>Sun, 12 Jul 2009 20:35:32 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:247889</guid><dc:creator>moonlit_valley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/247889.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=247889</wfw:commentRss><description>&lt;p&gt;Hi, thanks. That makes sense as it cuts out the traffic between the web server and the database server. Unfurtunately the host I am with has two seperate servers, but it&amp;#39;s reassuring knowing that if the project is a success we can get our own servers and put them on the same box.&lt;/p&gt;</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/247834.aspx</link><pubDate>Sun, 12 Jul 2009 17:19:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:247834</guid><dc:creator>SynbadSS</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/247834.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=247834</wfw:commentRss><description>Mate, i don&amp;#39;t know if this helps but a while back i had a situation where i had my Sql server on once instance of Windows and then on a virtual machine on the same box i had my web server. My pages were in asp.net connecting to SQLSever 2005. Things went dog slow!!!!!! I put them on the same machine and like magic things went fast again.</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/244221.aspx</link><pubDate>Tue, 07 Jul 2009 21:41:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244221</guid><dc:creator>moonlit_valley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244221.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=244221</wfw:commentRss><description>&lt;p&gt;I see, I&amp;#39;m glad you&amp;#39;ve explained that to me. This is how I did it in the past with non silverlight ajax autocompletes, using the where clause at the database.&lt;/p&gt;
&lt;p&gt;Thanks for your time, Roet, &lt;/p&gt;
&lt;p&gt;Drew&lt;/p&gt;</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/244192.aspx</link><pubDate>Tue, 07 Jul 2009 20:44:58 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244192</guid><dc:creator>Roet</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244192.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=244192</wfw:commentRss><description>Yes the Silverlight Toolkit Autocomplete CAN do that for you, but that is only useful if you have the complete collection on the client side, which is not the case. You want to search/filter the WHOLE collection for Smith. And that hole collection is on the SQL database, so you should pass the entered string in the autocompletebox to the server, filter your database on that string, and then return the first 50 records of that query. Thats how it should work. 

The Autobox can filter, but when you use webservices as the source, you should put autocomplete and filter off.

I suggest reading the following:

http://www.jeff.wilcox.name/2008/11/autocompletebox-missing-guide/

Pay attention to the &amp;quot;Connecting to a web service&amp;quot; part. You will find what you need there! :)</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/244189.aspx</link><pubDate>Tue, 07 Jul 2009 20:33:39 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244189</guid><dc:creator>moonlit_valley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244189.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=244189</wfw:commentRss><description>&lt;p&gt;I appreciate your help, thanks. The query is:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;lt;OperationContract()&amp;gt; _&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Function&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; GetSuburbs() &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; List(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Of&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Suburb)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; suburbList &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SuburbModelDataContext = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SuburbModelDataContext&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Perfomance()&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;suburbList.ObjectTrackingEnabled = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;False&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; list = (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;From&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; theList &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;In&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; suburbList.Suburbs &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Select&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; theList).&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Take&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(50)&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; list.ToList&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Function&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;There is no Contains because, the Silverlight Tookit Autocomplete control does the Contains part itself. I can not send the contents of the Autocomplete box to the webservice above, but rather send the results of the webservice to the control that then filters what was sent to it. I think that&amp;#39;s how it works, anyway.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/244133.aspx</link><pubDate>Tue, 07 Jul 2009 18:49:36 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244133</guid><dc:creator>Roet</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244133.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=244133</wfw:commentRss><description>Could you give me the query that you are running? Because if you have the &amp;#39;Contains&amp;#39; method in it, only the top 50 records (or less) containing Smith, would be returned.</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/244082.aspx</link><pubDate>Tue, 07 Jul 2009 17:38:38 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244082</guid><dc:creator>moonlit_valley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244082.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=244082</wfw:commentRss><description>&lt;p&gt;Unfortunately, this does not appear to work. It&amp;#39;s as I feared, now only the first 50 rows of the table is returned. Since Smith is not in the first 50 rows, the autocomplete does not display Smith. The filtering is done by the control itself after all the data is returned to the client. Not sure what to do. Maybe is just can&amp;#39;t be used to look through large datasets.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Drew&lt;/p&gt;</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/243886.aspx</link><pubDate>Tue, 07 Jul 2009 11:24:58 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243886</guid><dc:creator>drewsalem</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243886.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=243886</wfw:commentRss><description>Great, I&amp;#39;ll try it tonight!</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/243876.aspx</link><pubDate>Tue, 07 Jul 2009 11:11:12 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243876</guid><dc:creator>Roet</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243876.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=243876</wfw:commentRss><description>&lt;p&gt;The Silverlight application runs on the client, and so the AutoCompleteBox does too. What you need to do when user types &amp;quot;Smith&amp;quot;, is to make a webservice call like &amp;quot;GetContactsByName(string Name&amp;quot; and there run a query like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;pre class="coloredcode"&gt;List persons =  (from p &lt;span class="kwd"&gt;in&lt;/span&gt; db.Persons
                         where p.Name.Contains(searchText)                         
                         orderby p.Name
                         select p).Take(50).ToList();&lt;/pre&gt;
&lt;p&gt;&lt;font color="#ffffff" size="2"&gt;&lt;font color="#ffffff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then, send that list back to the client. It is, of course, way faster than passing the entire database and start filtering on the client with the autocompletebox.&lt;/p&gt;</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/243866.aspx</link><pubDate>Tue, 07 Jul 2009 10:57:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243866</guid><dc:creator>drewsalem</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243866.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=243866</wfw:commentRss><description>&lt;p&gt;Thanks so much for replying Roet. I&amp;#39;ll certainly try this tonight. Before I do though, I need to know if it actually effects the problem I have. I&amp;#39;m hoping someone can clarify how the Autocomplete engine works. Let&amp;#39;s say I have a table of names of 5000 rows. I want to search a Mr. Smith, of which there are say 4 Mr. Smiths in the table. Currently, I type in the letters, s,m,i, and my Web Service selects the whole table. Now what is happening? Is the whole table being returned to the Autocomplete control, and then filtered by the control? And where is this filtering occuring? On the web server or on the client PC? If I use the .Take method mentioned about to select the first 50 rows, will that work if the filtering is actually done by the Autocomplete control and not the webservice linq query? Will the control now say return all s,m,i entries in the top 50&amp;nbsp;rows, or select the top 50 s,m,i entries?&amp;nbsp;&amp;nbsp;In the past with the standard Ajax Autocomplete control, this was straightforward as the filtering was done by SQL Server, and so only the required results came back across the network.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Drew&lt;/p&gt;</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/243738.aspx</link><pubDate>Tue, 07 Jul 2009 08:10:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243738</guid><dc:creator>Roet</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243738.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=243738</wfw:commentRss><description>You can do something like this:

            var first3WAOrders = (
                from c in customers
                from o in c.Orders
                where c.Region == &amp;quot;WA&amp;quot;
                select new {c.CustomerID, o.OrderID, o.OrderDate} )
                .Take(3);

The &amp;quot;Take&amp;quot; Method only selects the amount you would like to return. 
I suggest a take of about 50. Remember to order it properly frist.

Might help you with further query problems:
http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx</description></item><item><title>Re: Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/243439.aspx</link><pubDate>Mon, 06 Jul 2009 21:25:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243439</guid><dc:creator>moonlit_valley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243439.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=243439</wfw:commentRss><description>&lt;p&gt;No ideas anyone? I just used fiddler to see what was going on and was surprised to see the whole 5000 rows returned? Is fiddler reporting what is returning to my client pc or what&amp;#39;s happening on the server? If it&amp;#39;s my client pc, then returning the whole table seems a bit inefficient. Can someone explain how the silverlight autocomplete works? When I used the vanilla Ajax autocomplete control a couple of years back, I seem to remember filtering at the database, Select...where..like &amp;#39;%autocomplete.text%&amp;#39;, and so the whole table was not returned. Is the silverlight control doing the filtering here? My Linq is selecting the whole table. How do I change this behaviour?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;
&lt;p&gt;Drew&lt;/p&gt;</description></item><item><title>Super fast autocomplete grinds to virtually a halt when uploaded to host</title><link>http://forums.silverlight.net/forums/thread/243377.aspx</link><pubDate>Mon, 06 Jul 2009 19:29:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243377</guid><dc:creator>moonlit_valley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243377.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=243377</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any thoughts on this one? I have a data grid templated autocomplete, that is super fast on my local machine, run from within VS. It&amp;#39;s selecting&amp;nbsp;items via a web service, also on my PC, from a database table, also on my PC, that has 5000 rows.&lt;/p&gt;
&lt;p&gt;After deploying the webservice to my host, the autocomplete takes between 9 and 15 seconds to return. My host has a seperate database server from the web server, but I still wouldn&amp;#39;t expect it to be that slow. I&amp;#39;ve played with autocomplete settings such as minimum populate time, as well as indexing the table, but I don&amp;#39;t see how that would make a difference, seeing as it&amp;#39;s fine on my PC.&lt;/p&gt;
&lt;p&gt;The service is&amp;nbsp;using LINQ to SQL to retreive the data.&lt;/p&gt;
&lt;p&gt;Here are some&amp;nbsp;findings:&lt;/p&gt;
&lt;p&gt;Webservice&amp;nbsp;on a remote server&amp;nbsp;- Database on remote server&lt;br /&gt;Slow: Up to 15seconds&lt;/p&gt;
&lt;p&gt;WebService on&amp;nbsp;remote server - Database local&lt;br /&gt;Slow: Up to 15 seconds&lt;/p&gt;
&lt;p&gt;WebService Local - Database local&lt;br /&gt;Fast (No factory markup on service): 2 seconds&lt;/p&gt;
&lt;p&gt;WebService local - database remote&lt;br /&gt;Fastish (No factory markup on service): 4 seconds.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Drew&lt;/p&gt;</description></item></channel></rss>