Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.1 Required
    • Component/s: Querying
    • Labels:
    • Environment:
      All

      Description

      Dear developers.

      Recently, I've encountered a situation, in which a document contained and integer value with a bitwise flag logic.
      Unfortunately, MongoDB's $and and $or do not support bitwise logic.
      Is it possible to implement that? Should it be filed as a feature request?

      Thank you.

        Issue Links

          Activity

          Hide
          cogent Ali Gangji added a comment -

          I didn't say anything about 450 keywords. I don't know the details of your application. Maybe bitwise flags are more useful for your purposes. It's possible a different architecture would be required to eliminate your usage of bitwise flags.

          Awyways, I am not a MongoDB developer and have no control over their development path. I'm watching this issue myself because I'm interested in this feature becoming available. I'm only trying to help point you to the alternatives that exist today. I wish you good luck!

          Show
          cogent Ali Gangji added a comment - I didn't say anything about 450 keywords. I don't know the details of your application. Maybe bitwise flags are more useful for your purposes. It's possible a different architecture would be required to eliminate your usage of bitwise flags. Awyways, I am not a MongoDB developer and have no control over their development path. I'm watching this issue myself because I'm interested in this feature becoming available. I'm only trying to help point you to the alternatives that exist today. I wish you good luck!
          Hide
          pulsar guipulsar added a comment -

          thhanks for ur alternative propositions but concerning bitwise there are no really alternative , thats why its so much important thing and future, i will continue to pushup this feature request , honestly i think mongo devloppers made a serious mistake when flagging this at " trivial " and "planing but not scheduled " ;
          In fact , because this statut , we're thinking to move for another nosql solution... we are pretty grow company with many projects , we find mongo interesting , but the lack of bitwise is a serious thing unfortunatly. I guess im not alone at all in this case . Hope developers will manifest some talk about , before many projects leave away ..

          Show
          pulsar guipulsar added a comment - thhanks for ur alternative propositions but concerning bitwise there are no really alternative , thats why its so much important thing and future, i will continue to pushup this feature request , honestly i think mongo devloppers made a serious mistake when flagging this at " trivial " and "planing but not scheduled " ; In fact , because this statut , we're thinking to move for another nosql solution... we are pretty grow company with many projects , we find mongo interesting , but the lack of bitwise is a serious thing unfortunatly. I guess im not alone at all in this case . Hope developers will manifest some talk about , before many projects leave away ..
          Hide
          vrobert120 Vincent Robert added a comment -

          We fully agree with the comments of Guipulsar and our position is similar. We have requested this feature a very long time ago and we still have no planning/schedule for the implementation. This is not serious.

          Show
          vrobert120 Vincent Robert added a comment - We fully agree with the comments of Guipulsar and our position is similar. We have requested this feature a very long time ago and we still have no planning/schedule for the implementation. This is not serious.
          Hide
          alainc Alain Cordier added a comment -

          I cant understand how the $bit operator for update can be available for this long time with no counterpart in queries. Seems completely silly to me !

          There was an attempt to implement it here: https://github.com/mongodb/mongo/pull/168, but it was cancelled because the code evolved too much...

          Show
          alainc Alain Cordier added a comment - I cant understand how the $bit operator for update can be available for this long time with no counterpart in queries. Seems completely silly to me ! There was an attempt to implement it here: https://github.com/mongodb/mongo/pull/168 , but it was cancelled because the code evolved too much...
          Hide
          tpneumat Jeremy added a comment -

          Agreed. Can we please, please, pretty please get this feature?

          Show
          tpneumat Jeremy added a comment - Agreed. Can we please, please, pretty please get this feature?

            Dates

            • Created:
              Updated:
              Days since reply:
              8 weeks, 3 days ago
              Date of 1st Reply: