GithubHelp home page GithubHelp logo

Comments (8)

jbueza avatar jbueza commented on May 29, 2024

Hey @nikhilhasija -- Wouldn't it be best if you just used the following example to return all records given a specific partition key?

https://www.windowsazure.com/en-us/develop/nodejs/how-to-guides/table-services/#query-set-entities

from azure-sdk-for-node.

jbueza avatar jbueza commented on May 29, 2024

We can close this issue -- if @nikhilhasija has another use case that the above example doesn't solve, we can re-open.

from azure-sdk-for-node.

andrerod avatar andrerod commented on May 29, 2024

Although you are correct Jaime, I think that we could indeed probably be flexible here. whereKeys was indeed designed having in mind the query single entity flow, but we could extend it to be flexible and adjust "automagically" the query in case, both, only one or none of the keys (Partition / Row) is provided.

Would you agree Jaime ?

from azure-sdk-for-node.

jbueza avatar jbueza commented on May 29, 2024

+1 on that @andrerod -- Hint hint to the community to land this feature + tests ;)

from azure-sdk-for-node.

nikhilhasija avatar nikhilhasija commented on May 29, 2024

Thanks @andrerod I support it :)

I think most of the time, the way I am designing my interfaces, PartitionKey is extracted from the data and often there is no where clause (although a where clause simply filters it down further). When I looked at the code, it seemed that making a call using only whereKeys may be more efficient that building a where clause (few ticks but in node i try to avoid, any compute necessary).

Also there is a matter of convention causing confusion.. In node.js variable convention the partition key is referred to as 'partitionKey' while in Azure tables it is 'PartitionKey'... moving the query to a where clause took me a while to decipher as why my data was not showing up as I was using 'partitionKey eq ?' erroneously...

from azure-sdk-for-node.

andrerod avatar andrerod commented on May 29, 2024

Glad you guys aprove :-) If no one else takes this, expect some updates after the holidays.

from azure-sdk-for-node.

andrerod avatar andrerod commented on May 29, 2024

Fixed.

from azure-sdk-for-node.

nikhilhasija avatar nikhilhasija commented on May 29, 2024

Awesome.

On Mar 15, 2012, at 5:09 PM, Andr Rodrigues wrote:

Fixed.


Reply to this email directly or view it on GitHub:
#16 (comment)

from azure-sdk-for-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.