Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sphinx_min_max_matches.php 418B

1234567891011
  1. <?
  2. $SphQL = new SphinxqlQuery();
  3. $SphQL->where_match('_all', 'fake', false);
  4. $SphQL->select('id')->from('torrents, delta')->limit(0,0,10000);
  5. $TTorrents = $SphQL->query()->get_meta('total_found');
  6. $SphQL->select('groupid')->group_by('groupid')->from('torrents, delta')->limit(0,0,10000);
  7. $TGroups = $SphQL->query()->get_meta('total_found');
  8. $Cache->cache_value('sphinx_min_max_matches', 2*($TTorrents-$TGroups));
  9. ?>