# Graph Simulation

**URL:** <https://forum.cloverdx.com/t/graph-simulation/631>\
**Category:** CloverDX Platform\
**Created:** [November 20, 2009, 12:00am UTC](https://forum.cloverdx.com/t/graph-simulation/631 "2009-11-20T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcpoletto](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.cloverdx.com/lcpoletto/32/135_2.png) [@lcpoletto](https://forum.cloverdx.com/u/lcpoletto)\
**Post date:** [November 20, 2009, 12:00am UTC](https://forum.cloverdx.com/t/graph-simulation/631/1 "2009-11-20T00:00:00Z")

</div>

Hello,

Is there any way we can limit the number of records which a graph can process?  
Let’s suppose we have a database table which contains about 5 million customers of the company and the graph database connector loads the data with:

```auto
select * from customer where active = true;

```

But we want to “test” the execution of the graph to see if it fits the company needs, to do our tests we don’t need to process all the 5 million customer, but just a part of it. I know that, in this sample, we could change the SQL query to limit the number of records loaded from the database, but this is just one sample, we have a lot of other data sources that aren’t databases. Can we limit this record processing in some of engine initializer parameters or something like that?

Thanks in advance.  
Luis.

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [November 23, 2009, 8:27am UTC](https://forum.cloverdx.com/t/graph-simulation/631/2 "2009-11-23T08:27:39Z")

</div>

Hello,  
all Readers, except DBInputTable and ParallerReader, have _numRecords_ attribute, that specifies how many records/rows should be read from the source file. So you can use this parameter for testing purposes. For the real run of graph you can remove this parameter or set it to -1 - this means “process all records”. Some Readers have _numSourceRecords_ attribute also; it specifies how many records/rows should be read from every source.
