Conference Notes and Best Practices Release 1.3 ... - Read the Docs
Conference Notes and Best Practices Release 1.3 ... - Read the Docs
Conference Notes and Best Practices Release 1.3 ... - Read the Docs
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Conference</strong> <strong>Notes</strong> <strong>and</strong> <strong>Best</strong> <strong>Practices</strong>, <strong>Release</strong> <strong>1.3</strong><br />
Building Search<br />
• Model attribute<br />
• Templates<br />
• Field method (Method that refers to a field)<br />
• Queryset to define a search index (Specify what gets added to <strong>the</strong> index)<br />
Help Users<br />
• Improve quality of search<br />
• Adjust relevance<br />
• Boot fields, documents, terms<br />
• Log searches, results, <strong>and</strong> <strong>the</strong>ir success<br />
• Use search engine as cache<br />
Doing More with Search<br />
• ElasticSearch can configure index analysis.<br />
• Can configure tokenizers <strong>and</strong> filters<br />
• Write a custom backend/New Default analyzer/Update search mapping<br />
Some Gotchas<br />
• Don’t index fields used for sorting<br />
• Debug search issues (Is this plugged in, is anything indexed?)<br />
• Haystack debug pannel for django debug toolbar<br />
SearchIndex = data mapping<br />
Writing Fast <strong>and</strong> Efficient Unit Tests For Django<br />
Presenter: Casey Kinsey<br />
Track: I<br />
Description:<br />
Many developers have difficulty finding clear guidelines <strong>and</strong> best practices for how to test efficiently,<br />
leading to a flimsy, slow, <strong>and</strong> ineffective test suite. This talk will cover some basic (but oft overlooked)<br />
principles of unit <strong>and</strong> integration testing, <strong>and</strong> dive into more advanced topics such as testing with read<br />
only data <strong>and</strong> using Mock ultra-focused <strong>and</strong> fast testing.<br />
Writing Faster Tests<br />
A real need for test speed<br />
• Made an initial production release of a real product for a national media company<br />
• Test Coverage not great<br />
30 Chapter 3. <strong>Conference</strong>s