Forum Discussion
peterlu
Champion
jaread83 You can also try the notifications API. Since when someone mentions you, you will receive a notification. You can use /users/id/yourid/notifications
And look for the mention type
The logic can be, list 1000 notifications, and filter out the mentions type, in each mention object, you will find the message url.
And look for the mention type
The logic can be, list 1000 notifications, and filter out the mentions type, in each mention object, you will find the message url.
VikasB
8 years agoBoss
Wow, good job peterlu. Actually, the match query approach is not a preferred one because to fetch those 5 mentioned messages we have to traverse too many messages. But notifications count will not be a big one as we need to fetch the notifications specific to that user.
Also, I noticed from 17.9 that
Maximum value for LIMIT in LiQL queries
We have added a configuration which sets the maximum value allowed for LIMIT in LiQL queries to 1000. This is to help performance and protect against malicious attacks. If you need to raise this limit, contact Lithium Support.
So ClaudiusH is Lithium supports to raise this limit in V1 also?
Related Content
- 8 months ago
- 5 months ago
- 2 years ago