-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotificationSqlDao should provide search on both keys #7
Comments
Confused, isn't it the case already? |
No, we only search on one key. See https://github.com/killbill/killbill-commons/blob/master/queue/src/main/resources/org/killbill/notificationq/dao/NotificationSqlDao.sql.stg#L31 and killbill-commons/queue/src/main/java/org/killbill/notificationq/DefaultNotificationQueue.java Line 102 in dc64043
|
Ah got it, you mean searching for both searchKeys at once.... Still confused why we would need it though (for Kill Bill): Once we specify searching by account_record_id, it will implicitly return only one tenant so then tenant_record_id becomes irrelevant. I suppose from an API point of view (for the queue itself) it may make sense to search by both keys at once. |
[We talked about it IRL, but just for the records]
|
We should just double check we've updated Kill Bill to use it (see my comment about security issue above). |
NotificationSqlDao
should providegetReadyQueueEntriesForSearchKeyS
, not only because it is required for Kill Bill (to search byaccount_record_id
andtenant_record_id
), but also because the only index present today is a composite on both keys.The text was updated successfully, but these errors were encountered: