Recently, in the group column of Dapeng network, I thought of two methods to implement group members,
The first method is to create a group member database and add a new member to add a piece of data. However, if so, the database data size of the group members will be huge. Assume that each group has 10000 members, if there are 1000 groups, the data volume will reach 10000000,
The second method is to create a database for group members, including the field ID, group ID, and group members. The group members are the fields for storing the member IDs, separated by commas, separate the usernames using the split method during reading and add them to the datalist control of the displayed data. In this way, the data volume will be greatly reduced.
Implementation example:
String userid = "yzwdli, yzwdli1, yzwdli2, yzwdli3"
User = userid. Split (",");
For (I = 0; I <user. length; I ++)
{
User [I]
}