Troubleshooting Scans

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

scans:troubleshooting [2019/07/01 21:26]
127.0.0.1 external edit
scans:troubleshooting [2021/05/20 23:42] (current)
betseyp
Line 25: Line 25:
 While slow-running scans can usually be fixed by putting the existing clauses in a different order, scans that return too few or too many results often need changes made to the clauses themselves. While slow-running scans can usually be fixed by putting the existing clauses in a different order, scans that return too few or too many results often need changes made to the clauses themselves.
  
-The number of scan results returned can be anything from zero to 999. If there are more than 999 results, the scan engine will only show the first 999. You want to have a manageable number of results to look at individually;​ typically 20-50 results is a good number to aim for. When your scan returns zero results or 999+, that is often a sign that your scan syntax needs to be fixed.+The number of scan results returned can be anything from zero to 2000. If there are more than 2000 results, the scan engine will only show the first 2000. You want to have a manageable number of results to look at individually;​ typically 20-50 results is a good number to aim for. When your scan returns zero results or 2000+, that is often a sign that your scan syntax needs to be fixed.
  
 If you are not getting a manageable number of results, there are several troubleshooting steps you can take to find and resolve the issue. Your approach will depend on whether you are getting too many or too few results. We've listed a few of the most helpful troubleshooting techniques below. If you are not getting a manageable number of results, there are several troubleshooting steps you can take to find and resolve the issue. Your approach will depend on whether you are getting too many or too few results. We've listed a few of the most helpful troubleshooting techniques below.
Line 75: Line 75:
 </​code>​ </​code>​
  
-When you run the scan above, you will get the first 999 stocks ([type = stock]) in the database. Uncomment the next line and run it again:+When you run the scan above, you will get the first 2000 stocks ([type = stock]) in the database. Uncomment the next line and run it again:
  
 <​code>​ <​code>​
Line 85: Line 85:
 </​code>​ </​code>​
  
-We still get 999+ results, this time made up of stocks averaging at least 40,000 in volume, so we uncomment the next line and run the scan again. Eventually, we uncomment the %B clause. When we run the scan that time, we get zero scan results. This tells us that the %B clause is the likely culprit, allowing us to focus our troubleshooting efforts on that clause.+We still get 2000+ results, this time made up of stocks averaging at least 40,000 in volume, so we uncomment the next line and run the scan again. Eventually, we uncomment the %B clause. When we run the scan that time, we get zero scan results. This tells us that the %B clause is the likely culprit, allowing us to focus our troubleshooting efforts on that clause.
  
 There could be a number of possible issues with this clause (or any other clause that gets zero results): There could be a number of possible issues with this clause (or any other clause that gets zero results):