If I have a bunch of documents with a “birthday” date field containing a person’s birthday (such as 12/19/81), what is the best way to design a view to show persons who have birthdays within the next 30 days?
Subject: Birthday date compare
Depending on how big your company is, this view approach might have performance that is “lacking”. Typically the standard practice is to NOT use @Today in the SELECT statement.
For example a SELECT using your Birthday field as compared to @Today, using @Adjust day parameter set to 30. You could see if Birthday is less than that and greater than or equal to @Today.
Instead, it’s probably best performance-wise to write an agent or design a form that looks up all the relevant docs, and displays them in a text or richtext box.
You could otherwise have an agent that sets a flag run once per day in off hours. For example, “Birthday30” flag. Then have the actual view just display any document that has the Birthday30 flag set to 1 or y.
Just ideas.
Jason
Subject: RE: Birthday date compare
Performance is definitely an issue, so I will go with the agent method. Thanks!
Subject: Birthday date compare
A little similar to this thread:http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllFlatweb/421ad0f226cf504d85256fb00059c9e8?OpenDocument
The agent option is a good way to go with someting like this…