Question: Lets say I have set lazy="true", and I am trying to retrieve child records for an Employee (Employee being parent, and FamilyMember being its child)

My code proceeds to build a collection of all the child records:

```
List<FamilyMember> familyMembers = new ArrayList<FamilyMember>();
Query query = session.createQuery("From FamilyMembers ...");
Iterator<FamilyMember> it = query.iterate();
while (it.hasNext()) {
    familyMembers.add(it.next());
}

```

The above iteration just builds a collection of "proxy" objects (say -list of 5 FamilyMember objects), as I understand. My question is - even to build the collection it needs to know the size of results (AND also the key field values of the child records for further use while actually fetching child records from proxy) that would be returned by some query (which it get by evidently hitting the DB), how does hibernate helps in saving performance overhead?

Further, assume some code which gets the physical record:

```
FamilyMember member = familyMembers.get(2);

```

Which FamilyMember object should the above line get? Does this imply that some implicit mapping with the key field for FamilyMember takes place behind the scene? If yes, then how come this improves performance when we are actually hitting the table for getting the related keys? Please clarify.

Answer: 
```js
if (message.content.startsWith(`!test`)) {
    await message.channel.send('Hello').then(r => r.delete({ timeout: 5000 }))
    console.log("test");
}

```
Since [this question](https://stackoverflow.com/q/46907207/10221765) is similar, you could use the same technique - adding a deletion timout. After you reply, `.then()` delete the message with your 15 second timer (15000 milliseconds):

```
message.reply("I guess they never miss, huh?").then(message => message.delete(15000)).catch(err => throw err);

```

Or if you can't use arrow syntax:

```
message.reply("I guess they never miss, huh?").then(function(message) {
    message.delete(15000);
}).catch(function(err) {
    throw err;
});

```