# \#key

**URL:** https://discuss.aerospike.com/tag/key/4.md

[Latest](https://discuss.aerospike.com/latest.md) · [Categories](https://discuss.aerospike.com/categories.md) · [Tags](https://discuss.aerospike.com/tags.md)

---

## [Fetch all keys based on some pattern](https://discuss.aerospike.com/t/fetch-all-keys-based-on-some-pattern/10203)

<div class="topic-metadata">

**Author:** [@unverifieduser](https://discuss.aerospike.com/u/unverifieduser)\
**Replies:** 3\
**Last updated:** [May 22, 2023, 7:07pm UTC](https://discuss.aerospike.com/t/fetch-all-keys-based-on-some-pattern/10203 "2023-05-22T19:07:32Z")

</div>

i have thousands of records on namepace:set. keys are of pattern: lastname/firstname/state/zip example: brown/chris/fl/32514 i want to get all keys based on the pattern “\*/chris/\*/32514” and perform delete operation on…

---

## [How are missing keys load balanced across the aerospike cluster nodes?](https://discuss.aerospike.com/t/how-are-missing-keys-load-balanced-across-the-aerospike-cluster-nodes/8769)

<div class="topic-metadata">

**Author:** [@vikrantl](https://discuss.aerospike.com/u/vikrantl)\
**Replies:** 2\
**Last updated:** [August 30, 2021, 5:28pm UTC](https://discuss.aerospike.com/t/how-are-missing-keys-load-balanced-across-the-aerospike-cluster-nodes/8769 "2021-08-30T17:28:53Z")

</div>

Reference: https://docs.aerospike.com/docs/architecture/ Division is purely algorithmic. The system scales without a master and eliminates the need for additional configuration as required in a sharded environment. Aer…

---

## [How to create a AQL query corresponding to a Java Key object](https://discuss.aerospike.com/t/how-to-create-a-aql-query-corresponding-to-a-java-key-object/8571)

<div class="topic-metadata">

**Author:** [@shan.p](https://discuss.aerospike.com/u/shan.p)\
**Replies:** 1\
**Last updated:** [June 27, 2021, 5:58pm UTC](https://discuss.aerospike.com/t/how-to-create-a-aql-query-corresponding-to-a-java-key-object/8571 "2021-06-27T17:58:38Z")

</div>

I have a Java project where I can view (debug) the Key of every record saved in the namespace. This is my Key value when printed to String: {Key@11379} "namespace:null:u17c3304e-9c9b-4905-9889-a9cf2b26dc9c:948b5799fd2f6d…

---

## [How "key" is determined in as.NewKey in aerospike](https://discuss.aerospike.com/t/how-key-is-determined-in-as-newkey-in-aerospike/5413)

<div class="topic-metadata">

**Author:** [@rocky](https://discuss.aerospike.com/u/rocky)\
**Replies:** 4\
**Last updated:** [August 2, 2018, 12:59pm UTC](https://discuss.aerospike.com/t/how-key-is-determined-in-as-newkey-in-aerospike/5413 "2018-08-02T12:59:05Z")

</div>

I have been trying to update records in Aerospike. I used key as below - key, err := as.NewKey("fooBar", "users", res.Record.Bins\["Email"\]) if err != nil { result = map\[string\]string{"error": "Can't update key! Try ag…

---

## [How to get all the keys from aerospike?](https://discuss.aerospike.com/t/how-to-get-all-the-keys-from-aerospike/2142)

<div class="topic-metadata">

**Author:** [@Hammad](https://discuss.aerospike.com/u/Hammad)\
**Replies:** 5\
**Last updated:** [May 23, 2017, 6:42am UTC](https://discuss.aerospike.com/t/how-to-get-all-the-keys-from-aerospike/2142 "2017-05-23T06:42:47Z")

</div>

Sir, How can i get all the keys from aerospike namespace like i can get keys from a map using map.keyset . I went through this link GitHub - helipilot50/store-primary-key .I tried writing a similar code to this one.I wr…

---

## [What is the maximum size of record stored in inmemory namespace?](https://discuss.aerospike.com/t/what-is-the-maximum-size-of-record-stored-in-inmemory-namespace/3065)

<div class="topic-metadata">

**Author:** [@AnilKumar\_Valluri](https://discuss.aerospike.com/u/AnilKumar_Valluri)\
**Replies:** 2\
**Last updated:** [June 17, 2016, 4:50am UTC](https://discuss.aerospike.com/t/what-is-the-maximum-size-of-record-stored-in-inmemory-namespace/3065 "2016-06-17T04:50:40Z")

</div>

HI, i want to use list as value for in-memory namespace. In the following link Known Limitations | Aerospike Documentation they are told about maximum record value size is limited to write-block-size. But this configurat…

---

## [How to get key in query](https://discuss.aerospike.com/t/how-to-get-key-in-query/2392)

<div class="topic-metadata">

**Author:** [@Mkrtich\_Soghomonyan](https://discuss.aerospike.com/u/Mkrtich_Soghomonyan)\
**Replies:** 1\
**Last updated:** [January 14, 2016, 5:27pm UTC](https://discuss.aerospike.com/t/how-to-get-key-in-query/2392 "2016-01-14T17:27:54Z")

</div>

Hi I’m trying to get records with key in a query. By doing the following I did not get the keys, they are coming as None(python client is used). q = c.query(namespace, set) q.where(aerospike.predicates.between('bin', 1,…

---

## [How to get any "N" number of records from a set in namespace?](https://discuss.aerospike.com/t/how-to-get-any-n-number-of-records-from-a-set-in-namespace/2149)

<div class="topic-metadata">

**Author:** [@Hammad](https://discuss.aerospike.com/u/Hammad)\
**Replies:** 2\
**Last updated:** [November 23, 2015, 6:57am UTC](https://discuss.aerospike.com/t/how-to-get-any-n-number-of-records-from-a-set-in-namespace/2149 "2015-11-23T06:57:31Z")

</div>

I want to get any “n” number of records from a set in namespace. I want to show a sample data from the set. Its more like having a peek into the set to see what data is in it. I am assuming that i have placed the same sc…

---

## [Primary Key search](https://discuss.aerospike.com/t/primary-key-search/558)

<div class="topic-metadata">

**Author:** [@josegom](https://discuss.aerospike.com/u/josegom)\
**Replies:** 6\
**Last updated:** [November 28, 2014, 1:09pm UTC](https://discuss.aerospike.com/t/primary-key-search/558 "2014-11-28T13:09:56Z")

</div>

Hello, I’m tryingo to create a primary Key query with java client. If I have this set: ±—±-----------+ | id | name | ±—±-----------+ | 3 | “jose” | | 1 | “david” | | 2 | “luis” | With PK equasl id field . I…
