<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>beer planet &#187; compare</title> <atom:link href="http://beerpla.net/tag/compare/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Fri, 06 Jan 2012 08:50:59 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>Comparison Between Solr And Sphinx Search Servers (Solr Vs Sphinx &#8211; Fight!)</title><link>http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/</link> <comments>http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/#comments</comments> <pubDate>Thu, 03 Sep 2009 15:00:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Databases]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Solr]]></category> <category><![CDATA[backend]]></category> <category><![CDATA[compare]]></category> <category><![CDATA[comparison]]></category> <category><![CDATA[engine]]></category> <category><![CDATA[enterprise]]></category> <category><![CDATA[fulltext]]></category> <category><![CDATA[indexing]]></category> <category><![CDATA[search]]></category> <category><![CDATA[server]]></category> <category><![CDATA[sphinx]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/09/03/detailed-comparison-between-solr-and-sphinx/</guid> <description><![CDATA[<p>In the past few weeks I&#039;ve been implementing advanced search at <a
rel="nofollow" href="http://www.plaxo.com">Plaxo</a>, working quite closely with <a
rel="nofollow" href="http://lucene.apache.org/solr/">Solr</a> enterprise search server. Today, I saw this relatively detailed comparison between Solr and its main competitor <a
rel="nofollow" href="http://www.sphinxsearch.com/">Sphinx</a> (full credit goes to StackOverflow user <a
rel="nofollow" href="http://stackoverflow.com/users/21239/mausch">mausch</a> who had been using Solr for the past 2 years). For those still confused, Solr and Sphinx are similar to MySQL FULLTEXT search, or for those even more confused, think Google (yeah, this is a bit of a stretch, I know).</p><h2>Similarities</h2><ul><li>Both Solr and Sphinx satisfy all of your requirements. They&#039;re fast and designed to index and search large bodies of data efficiently.</li><li>Both have a long list of</li></ul><p>...<div
class=clear></div> <a
href="http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>In the past few weeks I&#039;ve been implementing advanced search at <a
rel="nofollow" href="http://www.plaxo.com">Plaxo</a>, working quite closely with <a
rel="nofollow" href="http://lucene.apache.org/solr/">Solr</a> enterprise search server. Today, I saw this relatively detailed comparison between Solr and its main competitor <a
rel="nofollow" href="http://www.sphinxsearch.com/">Sphinx</a> (full credit goes to StackOverflow user <a
rel="nofollow" href="http://stackoverflow.com/users/21239/mausch">mausch</a> who had been using Solr for the past 2 years). For those still confused, Solr and Sphinx are similar to MySQL FULLTEXT search, or for those even more confused, think Google (yeah, this is a bit of a stretch, I know).</p><h2>Similarities</h2><ul><li>Both Solr and Sphinx satisfy all of your requirements. They&#039;re fast and designed to index and search large bodies of data efficiently.</li><li>Both have a long list of high-traffic sites using them (<a
rel="nofollow" href="http://wiki.apache.org/solr/PublicServers">Solr</a>, <a
rel="nofollow" href="http://www.sphinxsearch.com/powered.html">Sphinx</a>)</li><li>Both offer commercial support. (<a
rel="nofollow" href="http://www.lucidimagination.com/">Solr</a>, <a
rel="nofollow" href="http://www.sphinxsearch.com/consulting.html">Sphinx</a>)</li><li>Both offer client API bindings for several platforms/languages (<a
rel="nofollow" href="http://www.sphinxsearch.com/contribs.html">Sphinx</a>, <a
rel="nofollow" href="http://wiki.apache.org/solr/#head-ab1768efa59b26cbd30f1acd03b633f1d110ed47">Solr</a>)</li><li>Both can be distributed to increase speed and capacity (<a
rel="nofollow" href="http://www.sphinxsearch.com/docs/current.html#distributed">Sphinx</a>, <a
rel="nofollow" href="http://wiki.apache.org/solr/DistributedSearch">Solr</a>)</li></ul><h2>Here are some differences</h2><ul><li>Solr, being an Apache project, is obviously is Apache2-licensed. <a
rel="nofollow" href="http://www.sphinxsearch.com/licensing.html">Sphinx is GPLv2</a>. This means that if you ever need to embed or extend (not just &#034;use&#034;) Sphinx in a commercial application, you&#039;ll have to buy a commercial license.</li><li>Solr is <a
rel="nofollow" href="http://wiki.apache.org/solr/Solrj#head-02003c15f194db1a691f8b9bb909145a60ccf498">easily embeddable</a> in Java applications.</li><li>Solr is built on top of Lucene, which is a proven technology over <a
rel="nofollow" href="http://svn.apache.org/viewvc/lucene/java/tags/LUCENE%5F1%5F0%5F1/">7 years old</a> with a <a
rel="nofollow" href="http://wiki.apache.org/lucene-java/PoweredBy">huge user base</a> (this is only a small part). Whenever Lucene gets a new feature or speedup, Solr gets it too. Many of the devs committing to Solr are also Lucene committers.</li><li>Sphinx integrates more tightly with RDBMSs, especially MySQL.</li><li>Solr can be <a
rel="nofollow" href="http://highscalability.com/how-rackspace-now-uses-mapreduce-and-hadoop-query-terabytes-data">integrated with Hadoop to build distributed applications</a></li><li>Solr can be <a
rel="nofollow" href="http://stackoverflow.com/questions/211411/using-nutch-crawler-with-solr">integrated with Nutch to quickly build a fully-fledged web search engine with crawler</a>.</li><li>Solr can <a
rel="nofollow" href="http://wiki.apache.org/solr/ExtractingRequestHandler">index proprietary formats like Microsoft Word, PDF, etc</a>. Sphinx <a
rel="nofollow" href="http://stackoverflow.com/questions/1207995/indexing-word-documents-and-pdfs-with-sphinx">can&#039;t</a>.</li><li>Solr comes with a <a
rel="nofollow" href="http://wiki.apache.org/solr/SpellCheckComponent">spell-checker out of the box</a>.</li><li>Solr comes with <a
rel="nofollow" href="http://wiki.apache.org/solr/SolrFacetingOverview">facet support out of the box</a>. Faceting in Sphinx <a
rel="nofollow" href="http://api-meal.eu/memo/128-faceted-search-with-sphinx-and-php/">takes more work</a>.</li><li><a
rel="nofollow" href="http://stackoverflow.com/questions/737275/pros-cons-of-full-text-search-engine-lucene-sphinx-postgresql-full-text-searc/737931#737931">Sphinx doesn&#039;t allow partial index updates for field data</a>.</li><li>In Sphinx, <a
rel="nofollow" href="http://www.sphinxsearch.com/docs/current.html#data-restrictions">all document ids must be unique unsigned non-zero integer numbers</a>. Solr <a
rel="nofollow" href="http://wiki.apache.org/solr/UniqueKey">doesn&#039;t even require a unique key for many operations</a>, and unique keys can be either integers or strings.</li><li>Solr supports <a
href="http://wiki.apache.org/solr/FieldCollapsing">field collapsing</a> to avoid duplicating similar results. Sphinx doesn&#039;t seem to provide any feature like this.</li></ul><h2>Related questions</h2><ul><li><a
title="http://stackoverflow.com/questions/1284083/choosing-a-stand-alone-full-text-search-server-sphinx-or-solr" rel="nofollow" href="http://stackoverflow.com/questions/1284083/choosing-a-stand-alone-full-text-search-server-sphinx-or-solr">http://stackoverflow.com/questions/1284083/choosing-a-stand-alone-full-text-search-server-sphinx-or-solr</a></li><li><a
rel="nofollow" href="http://stackoverflow.com/questions/1132284/full-text-searching-with-rails">http://stackoverflow.com/questions/1132284/full-text-searching-with-rails</a></li><li><a
rel="nofollow" href="http://stackoverflow.com/questions/737275/pros-cons-of-full-text-search-engine-lucene-sphinx-postgresql-full-text-searc">http://stackoverflow.com/questions/737275/pros-cons-of-full-text-search-engine-lucene-sphinx-postgresql-full-text-searc</a></li></ul><h2>Conclusion</h2><p>In my experience, Solr is very-very fast on the query side. It is also very powerful. The indexing side is very CPU and memory intensive and is an unfortunate side effect of having such a feature-rich, fast application. Nevertheless, I highly recommend Solr.</p><p>For disclaimer purposes, I have not had much experience with Sphinx and, again, all credit for this comparison goes to <a
rel="nofollow" href="http://stackoverflow.com/users/21239/mausch">mausch</a>.</p><p>By the way, here&#039;s a really good resource for Solr 1.4 that just came out: <a
href="http://www.amazon.com/dp/1847195881/?tag=beepla-20">Solr 1.4 Enterprise Search</a>. I have this book and it&#039;s quite helpful in explaining such topics as multicore setup, search methods, replication, etc.</p><p
align="center"><iframe
src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=beepla-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=1847195881" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p><div
class='post_blob_1'>We offer the best quality <a
href="http://www.test-king.com/exams/70-648.htm">70-648</a> resources. Use our latest <a
href="http://www.test-king.com/exams/1Y0-A08.htm">1Y0-A08</a> questions and <a
href="http://www.test-king.com/exams/642-357.htm">642-357</a> answers to pass your certification exams.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Comparison+Between+Solr+And+Sphinx+Search+Servers+%28Solr+Vs+Sphinx+-+Fight%21%29&amp;link=http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/&amp;notes=In%20the%20past%20few%20weeks%20I%27ve%20been%20implementing%20advanced%20search%20at%20Plaxo%2C%20working%20quite%20closely%20with%20Solr%20enterprise%20search%20server.%20Today%2C%20I%20saw%20this%20relatively%20detailed%20comparison%20between%20Solr%20and%20its%20main%20competitor%20Sphinx%20%28full%20credit%20goes%20to%20StackOverflow%20user%20mausch%20who%20had%20been%20using%20Solr%20for%20the&amp;short_link=http://bit.ly/9TGaBF&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Comparison+Between+Solr+And+Sphinx+Search+Servers+%28Solr+Vs+Sphinx+-+Fight%21%29&amp;link=http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/&amp;notes=In%20the%20past%20few%20weeks%20I%27ve%20been%20implementing%20advanced%20search%20at%20Plaxo%2C%20working%20quite%20closely%20with%20Solr%20enterprise%20search%20server.%20Today%2C%20I%20saw%20this%20relatively%20detailed%20comparison%20between%20Solr%20and%20its%20main%20competitor%20Sphinx%20%28full%20credit%20goes%20to%20StackOverflow%20user%20mausch%20who%20had%20been%20using%20Solr%20for%20the&amp;short_link=http://bit.ly/9TGaBF&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Comparison+Between+Solr+And+Sphinx+Search+Servers+%28Solr+Vs+Sphinx+-+Fight%21%29&amp;link=http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/&amp;notes=In%20the%20past%20few%20weeks%20I%27ve%20been%20implementing%20advanced%20search%20at%20Plaxo%2C%20working%20quite%20closely%20with%20Solr%20enterprise%20search%20server.%20Today%2C%20I%20saw%20this%20relatively%20detailed%20comparison%20between%20Solr%20and%20its%20main%20competitor%20Sphinx%20%28full%20credit%20goes%20to%20StackOverflow%20user%20mausch%20who%20had%20been%20using%20Solr%20for%20the&amp;short_link=http://bit.ly/9TGaBF&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Comparison+Between+Solr+And+Sphinx+Search+Servers+%28Solr+Vs+Sphinx+-+Fight%21%29&amp;link=http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/&amp;notes=In%20the%20past%20few%20weeks%20I%27ve%20been%20implementing%20advanced%20search%20at%20Plaxo%2C%20working%20quite%20closely%20with%20Solr%20enterprise%20search%20server.%20Today%2C%20I%20saw%20this%20relatively%20detailed%20comparison%20between%20Solr%20and%20its%20main%20competitor%20Sphinx%20%28full%20credit%20goes%20to%20StackOverflow%20user%20mausch%20who%20had%20been%20using%20Solr%20for%20the&amp;short_link=http://bit.ly/9TGaBF&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Comparison+Between+Solr+And+Sphinx+Search+Servers+%28Solr+Vs+Sphinx+-+Fight%21%29&amp;link=http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/&amp;notes=In%20the%20past%20few%20weeks%20I%27ve%20been%20implementing%20advanced%20search%20at%20Plaxo%2C%20working%20quite%20closely%20with%20Solr%20enterprise%20search%20server.%20Today%2C%20I%20saw%20this%20relatively%20detailed%20comparison%20between%20Solr%20and%20its%20main%20competitor%20Sphinx%20%28full%20credit%20goes%20to%20StackOverflow%20user%20mausch%20who%20had%20been%20using%20Solr%20for%20the&amp;short_link=http://bit.ly/9TGaBF&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Comparison+Between+Solr+And+Sphinx+Search+Servers+%28Solr+Vs+Sphinx+-+Fight%21%29&amp;link=http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/&amp;notes=In%20the%20past%20few%20weeks%20I%27ve%20been%20implementing%20advanced%20search%20at%20Plaxo%2C%20working%20quite%20closely%20with%20Solr%20enterprise%20search%20server.%20Today%2C%20I%20saw%20this%20relatively%20detailed%20comparison%20between%20Solr%20and%20its%20main%20competitor%20Sphinx%20%28full%20credit%20goes%20to%20StackOverflow%20user%20mausch%20who%20had%20been%20using%20Solr%20for%20the&amp;short_link=http://bit.ly/9TGaBF&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Comparison+Between+Solr+And+Sphinx+Search+Servers+%28Solr+Vs+Sphinx+-+Fight%21%29&amp;link=http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/&amp;notes=In%20the%20past%20few%20weeks%20I%27ve%20been%20implementing%20advanced%20search%20at%20Plaxo%2C%20working%20quite%20closely%20with%20Solr%20enterprise%20search%20server.%20Today%2C%20I%20saw%20this%20relatively%20detailed%20comparison%20between%20Solr%20and%20its%20main%20competitor%20Sphinx%20%28full%20credit%20goes%20to%20StackOverflow%20user%20mausch%20who%20had%20been%20using%20Solr%20for%20the&amp;short_link=http://bit.ly/9TGaBF&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Comparison%20Between%20Solr%20And%20Sphinx%20Search%20Servers%20%28Solr%20Vs%20Sphinx%20-%20Fight%21%29&amp;link=http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/&amp;notes=In%20the%20past%20few%20weeks%20I%27ve%20been%20implementing%20advanced%20search%20at%20Plaxo%2C%20working%20quite%20closely%20with%20Solr%20enterprise%20search%20server.%20Today%2C%20I%20saw%20this%20relatively%20detailed%20comparison%20between%20Solr%20and%20its%20main%20competitor%20Sphinx%20%28full%20credit%20goes%20to%20StackOverflow%20user%20mausch%20who%20had%20been%20using%20Solr%20for%20the&amp;short_link=http://bit.ly/9TGaBF&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/" rel="bookmark" title="September 21, 2009">[Solr] How To Fix java.io.IOException: directory FOO exists and is a directory, but cannot be listed: list() returned null</a></li><li><a
href="http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/" rel="bookmark" title="August 18, 2009">Delicious.com [Quietly] Rolls Out Domain And Url Searching/Filtering. Finally!</a></li><li><a
href="http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/" rel="bookmark" title="June 21, 2009">Hidden Features Of Perl, PHP, Javascript, C, C++, C#, Java, Ruby, Python, And Others [Collection Of Incredibly Useful Lists]</a></li><li><a
href="http://beerpla.net/2008/04/13/my-mysql-conference-schedule/" rel="bookmark" title="April 13, 2008">My MySQL Conference Schedule</a></li><li><a
href="http://beerpla.net/2011/06/13/goodbye-outlook-i-dont-need-you-anymore-gmail-now-lets-you-paste-images-directly-from-clipboard/" rel="bookmark" title="June 13, 2011">[Updated x3] Goodbye Outlook, I Don&#039;t Need You Anymore &#8211; Gmail Now Lets You Paste Images Directly From Clipboard</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F09%2F03%2Fcomparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight%2F&amp;title=Comparison%20Between%20Solr%20And%20Sphinx%20Search%20Servers%20%28Solr%20Vs%20Sphinx%20%26%238211%3B%20Fight%21%29" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>How To Check If The Local SVN Revision Is Up-To-Date</title><link>http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/</link> <comments>http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/#comments</comments> <pubDate>Thu, 24 Jul 2008 05:46:15 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[checkout]]></category> <category><![CDATA[co]]></category> <category><![CDATA[compare]]></category> <category><![CDATA[dry run]]></category> <category><![CDATA[revision]]></category> <category><![CDATA[SVN]]></category> <category><![CDATA[up]]></category> <category><![CDATA[up-to-date]]></category> <category><![CDATA[update]]></category> <guid
isPermaLink="false">http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/</guid> <description><![CDATA[<p>I&#039;ve encountered a problem recently where I had to figure out if some checked out code is up-to-date with the svn repository, without actually running svn update. Unfortunately, svn update doesn&#039;t have a dry-run option, so I had to find another solution.</p><p>I came up with 2, depending on how detailed the information needs to be, which I&#039;m about to share in this post.</p><p><strong>1. If you want exact file and directory names, you can run:</strong></p><p><div
class="wp_syntax"><div
class="code"><pre>svn status -u</pre></div></div></p><p>If any files need updating, you will see a * before the file name.</p><p><font
face="consolas"></font></p><div
class="wp_syntax"><div
class="code"><pre>svn status wc
M     wc/bar.c
A  +   wc/qax.c</pre></div></div><p></p><p><font
face="consolas"></font></p><div
class="wp_syntax"><div
class="code"><pre>svn status -u wc
M            965    wc/bar.c
       *     965    wc/foo.c
A</pre></div></div><p>...<div
class=clear></div> <a
href="http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>I&#039;ve encountered a problem recently where I had to figure out if some checked out code is up-to-date with the svn repository, without actually running svn update. Unfortunately, svn update doesn&#039;t have a dry-run option, so I had to find another solution.</p><p>I came up with 2, depending on how detailed the information needs to be, which I&#039;m about to share in this post.</p><p><strong>1. If you want exact file and directory names, you can run:</strong></p><p><div
class="wp_syntax"><div
class="code"><pre>svn status -u</pre></div></div></p><p>If any files need updating, you will see a * before the file name.</p><p><font
face="consolas"></p><div
class="wp_syntax"><div
class="code"><pre>svn status wc
M     wc/bar.c
A  +   wc/qax.c</pre></div></div><p></font></p><p><font
face="consolas"></p><div
class="wp_syntax"><div
class="code"><pre>svn status -u wc
M            965    wc/bar.c
       *     965    wc/foo.c
A  +         965    wc/qax.c
Status against revision:   981</pre></div></div><p></font></p><p><font
face="consolas">Or more verbose</font></p><p><font
face="consolas"></p><div
class="wp_syntax"><div
class="code"><pre>svn status --show-updates --verbose wc
M            965       938 kfogel       wc/bar.c
       *     965       922 sussman      wc/foo.c
A  +         965       687 joe          wc/qax.c
             965       687 joe          wc/zig.c
Status against revision:   981</pre></div></div><p></font></p><p>Parsing the output in Perl, for instance, should be trivial. A connection to the repository is established for this check, so be sure to catch in your code the times when such connection is not available.</p><p><strong>2. If you only care about whether a specific directory needs to be updated or not, here&#039;s a quicker method:</strong></p><p>svn info vs svn info -rHEAD</p><p><div
class="wp_syntax"><div
class="code"><pre>cd somedir;
svn info -r HEAD | grep -i &quot;Last Changed Rev&quot;
Last Changed Rev: 8544
svn info | grep -i &quot;Last Changed Rev&quot;
Last Changed Rev: 8531</pre></div></div></p><p>If these numbers are not the same, an update is needed.</p><p>What can I be missing? Are there any other creative ways, or is svn update going to support dry-run? Feel free to leave a comment if you know something I don&#039;t.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Check+If+The+Local+SVN+Revision+Is+Up-To-Date&amp;link=http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/&amp;notes=I%27ve%20encountered%20a%20problem%20recently%20where%20I%20had%20to%20figure%20out%20if%20some%20checked%20out%20code%20is%20up-to-date%20with%20the%20svn%20repository%2C%20without%20actually%20running%20svn%20update.%20Unfortunately%2C%20svn%20update%20doesn%27t%20have%20a%20dry-run%20option%2C%20so%20I%20had%20to%20find%20another%20solution.%20I%20came%20up%20with%202%2C%20depending%20on%20how%20detailed%20t&amp;short_link=http://bit.ly/bpdXJa&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Check+If+The+Local+SVN+Revision+Is+Up-To-Date&amp;link=http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/&amp;notes=I%27ve%20encountered%20a%20problem%20recently%20where%20I%20had%20to%20figure%20out%20if%20some%20checked%20out%20code%20is%20up-to-date%20with%20the%20svn%20repository%2C%20without%20actually%20running%20svn%20update.%20Unfortunately%2C%20svn%20update%20doesn%27t%20have%20a%20dry-run%20option%2C%20so%20I%20had%20to%20find%20another%20solution.%20I%20came%20up%20with%202%2C%20depending%20on%20how%20detailed%20t&amp;short_link=http://bit.ly/bpdXJa&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Check+If+The+Local+SVN+Revision+Is+Up-To-Date&amp;link=http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/&amp;notes=I%27ve%20encountered%20a%20problem%20recently%20where%20I%20had%20to%20figure%20out%20if%20some%20checked%20out%20code%20is%20up-to-date%20with%20the%20svn%20repository%2C%20without%20actually%20running%20svn%20update.%20Unfortunately%2C%20svn%20update%20doesn%27t%20have%20a%20dry-run%20option%2C%20so%20I%20had%20to%20find%20another%20solution.%20I%20came%20up%20with%202%2C%20depending%20on%20how%20detailed%20t&amp;short_link=http://bit.ly/bpdXJa&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Check+If+The+Local+SVN+Revision+Is+Up-To-Date&amp;link=http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/&amp;notes=I%27ve%20encountered%20a%20problem%20recently%20where%20I%20had%20to%20figure%20out%20if%20some%20checked%20out%20code%20is%20up-to-date%20with%20the%20svn%20repository%2C%20without%20actually%20running%20svn%20update.%20Unfortunately%2C%20svn%20update%20doesn%27t%20have%20a%20dry-run%20option%2C%20so%20I%20had%20to%20find%20another%20solution.%20I%20came%20up%20with%202%2C%20depending%20on%20how%20detailed%20t&amp;short_link=http://bit.ly/bpdXJa&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Check+If+The+Local+SVN+Revision+Is+Up-To-Date&amp;link=http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/&amp;notes=I%27ve%20encountered%20a%20problem%20recently%20where%20I%20had%20to%20figure%20out%20if%20some%20checked%20out%20code%20is%20up-to-date%20with%20the%20svn%20repository%2C%20without%20actually%20running%20svn%20update.%20Unfortunately%2C%20svn%20update%20doesn%27t%20have%20a%20dry-run%20option%2C%20so%20I%20had%20to%20find%20another%20solution.%20I%20came%20up%20with%202%2C%20depending%20on%20how%20detailed%20t&amp;short_link=http://bit.ly/bpdXJa&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Check+If+The+Local+SVN+Revision+Is+Up-To-Date&amp;link=http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/&amp;notes=I%27ve%20encountered%20a%20problem%20recently%20where%20I%20had%20to%20figure%20out%20if%20some%20checked%20out%20code%20is%20up-to-date%20with%20the%20svn%20repository%2C%20without%20actually%20running%20svn%20update.%20Unfortunately%2C%20svn%20update%20doesn%27t%20have%20a%20dry-run%20option%2C%20so%20I%20had%20to%20find%20another%20solution.%20I%20came%20up%20with%202%2C%20depending%20on%20how%20detailed%20t&amp;short_link=http://bit.ly/bpdXJa&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Check+If+The+Local+SVN+Revision+Is+Up-To-Date&amp;link=http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/&amp;notes=I%27ve%20encountered%20a%20problem%20recently%20where%20I%20had%20to%20figure%20out%20if%20some%20checked%20out%20code%20is%20up-to-date%20with%20the%20svn%20repository%2C%20without%20actually%20running%20svn%20update.%20Unfortunately%2C%20svn%20update%20doesn%27t%20have%20a%20dry-run%20option%2C%20so%20I%20had%20to%20find%20another%20solution.%20I%20came%20up%20with%202%2C%20depending%20on%20how%20detailed%20t&amp;short_link=http://bit.ly/bpdXJa&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Check%20If%20The%20Local%20SVN%20Revision%20Is%20Up-To-Date&amp;link=http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/&amp;notes=I%27ve%20encountered%20a%20problem%20recently%20where%20I%20had%20to%20figure%20out%20if%20some%20checked%20out%20code%20is%20up-to-date%20with%20the%20svn%20repository%2C%20without%20actually%20running%20svn%20update.%20Unfortunately%2C%20svn%20update%20doesn%27t%20have%20a%20dry-run%20option%2C%20so%20I%20had%20to%20find%20another%20solution.%20I%20came%20up%20with%202%2C%20depending%20on%20how%20detailed%20t&amp;short_link=http://bit.ly/bpdXJa&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li><li><a
href="http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/" rel="bookmark" title="June 16, 2008">How To SVN Update All Your WordPress Plugins In One Go</a></li><li><a
href="http://beerpla.net/2006/07/15/converting-from-cvs-to-svn-developers-notes-and-why-svn-is-better/" rel="bookmark" title="July 15, 2006">Converting from CVS to SVN: Developer&#039;s Notes And Why SVN Is Better</a></li><li><a
href="http://beerpla.net/2010/03/06/how-to-show-hiddeninvisible-files-in-total-commander-both-locally-and-on-an-ftp-server/" rel="bookmark" title="March 6, 2010">How To Show Hidden/Invisible Files In Total Commander, Both Locally And On An FTP Server</a></li><li><a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" rel="bookmark" title="June 20, 2009">How To Properly Set SVN svn:externals Property In SVN Command Line</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2008%2F07%2F23%2Fhow-to-check-if-the-local-svn-revision-is-up-to-date%2F&amp;title=How%20To%20Check%20If%20The%20Local%20SVN%20Revision%20Is%20Up-To-Date" id="wpa2a_4"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
