Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 760 Bytes

File metadata and controls

29 lines (21 loc) · 760 Bytes
title description lead date lastmod weight
Grouping Feeder Records
Grouping Feeder Records
Grouping Feeder Records
2021-04-20 18:30:56 +0200
2021-04-20 18:30:56 +0200
3030000

Use Case

Assuming you have a feeder file that contains data where records must be grouped by virtual users, such as:

username,url
user1,url1
user1,url2
user2,url3
user2,url4

You want to make sure user1 will pick url1 and url2 while user2 will pick url3 and url4.

Suggested Solution

The idea here is to use [readRecords]({{< ref "../../reference/current/core/session/feeder#readrecords" >}}) to load all the csv file records in memory so you can group them the way you want

{{< include-code "grouping-feeder" java kt scala >}}