<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=FindMany%28%29_-_ProcessWire_API</id>
	<title>FindMany() - ProcessWire API - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=FindMany%28%29_-_ProcessWire_API"/>
	<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=FindMany()_-_ProcessWire_API&amp;action=history"/>
	<updated>2026-05-07T02:59:27Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Wikizone</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=FindMany()_-_ProcessWire_API&amp;diff=24413&amp;oldid=prev</id>
		<title>37.49.72.8 am 19. Februar 2020 um 13:04 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=FindMany()_-_ProcessWire_API&amp;diff=24413&amp;oldid=prev"/>
		<updated>2020-02-19T13:04:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 19. Februar 2020, 13:04 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== API Zugriff ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; https://processwire.com/docs/start/api-access/&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Diverse nützliche Funktionen ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== findMany() ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die findMany Funktion ist speziell für Zugriffe auf große Datenbestände ausgelegt. Es ist im Prinzip ein lazyLoad find. So können selbst bei 10.000den Datensätzen Memory Overflows verhindert werden, ohne dass man mit Seiten arbeiten muss.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die findMany Funktion ist speziell für Zugriffe auf große Datenbestände ausgelegt. Es ist im Prinzip ein lazyLoad find. So können selbst bei 10.000den Datensätzen Memory Overflows verhindert werden, ohne dass man mit Seiten arbeiten muss.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  https://processwire.com/api/ref/pages/find-many/&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  https://processwire.com/api/ref/pages/find-many/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>37.49.72.8</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=FindMany()_-_ProcessWire_API&amp;diff=23552&amp;oldid=prev</id>
		<title>Steff: Die Seite wurde neu angelegt: „Die findMany Funktion ist speziell für Zugriffe auf große Datenbestände ausgelegt. Es ist im Prinzip ein lazyLoad find. So können selbst bei 10.000den Date…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=FindMany()_-_ProcessWire_API&amp;diff=23552&amp;oldid=prev"/>
		<updated>2019-01-29T06:42:54Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „Die findMany Funktion ist speziell für Zugriffe auf große Datenbestände ausgelegt. Es ist im Prinzip ein lazyLoad find. So können selbst bei 10.000den Date…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Die findMany Funktion ist speziell für Zugriffe auf große Datenbestände ausgelegt. Es ist im Prinzip ein lazyLoad find. So können selbst bei 10.000den Datensätzen Memory Overflows verhindert werden, ohne dass man mit Seiten arbeiten muss.&lt;br /&gt;
 https://processwire.com/api/ref/pages/find-many/&lt;br /&gt;
&lt;br /&gt;
Usage&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// basic usage&lt;br /&gt;
$items = $pages-&amp;gt;findMany($selector);&lt;br /&gt;
&lt;br /&gt;
// usage with all arguments&lt;br /&gt;
$items = $pages-&amp;gt;findMany($selector, array $options = []);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// Calculating a total from 20000 pages&lt;br /&gt;
$totalCost = 0;&lt;br /&gt;
$items = $pages-&amp;gt;findMany(&amp;quot;template=foo&amp;quot;); // 20000 pages&lt;br /&gt;
foreach($items as $item) {&lt;br /&gt;
  $totalCost += $item-&amp;gt;cost;&lt;br /&gt;
}&lt;br /&gt;
echo &amp;quot;Total cost is: $totalCost&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
 Name	Type(s)	Description&lt;br /&gt;
 selector	string, array, Selectors	&lt;br /&gt;
&lt;br /&gt;
 Selector to find pages&lt;br /&gt;
 options (optional)	array	&lt;br /&gt;
 Options to modify behavior. See Pages::find() $options argument for details.&lt;br /&gt;
 &lt;br /&gt;
Return value&lt;br /&gt;
 PageArray&lt;br /&gt;
=== findMany() mit User Objekten ===&lt;br /&gt;
 That&amp;#039;s correct. A solution is to use $pages-&amp;gt;findMany() with the user template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$members = $cache-&amp;gt;get(&amp;#039;members&amp;#039;, &amp;#039;+10 minutes&amp;#039;, function($pages) {&lt;br /&gt;
	$member_pages = $pages-&amp;gt;findMany(&amp;#039;template=user, roles=member, sort=lastname, limit=3000, check_access=0&amp;#039;);&lt;br /&gt;
	return json_encode($member_pages-&amp;gt;explode([&amp;#039;name&amp;#039;, &amp;#039;email&amp;#039;])); // Whatever fields/properties you need from the member pages&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Steff</name></author>
	</entry>
</feed>