Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

226
Visualizações
how to store large list of ids in the browser uri

I have a multi select on a webpage. The multi select value is an array of IDs and is handled on the client and stored in browser's uri, in query-string.

After the page is loaded or the filter (multi select) is changed, then the query-string is updated, decoded and extracted IDs are used to make the request to the API.

The purpose of this is to allow users to save the value of this filter in a browser bookmark, and also to allow them to share it via a link.

Each ID is 36 characters length string. But the uri of some browsers has a 2000 character length limit. So theoretically I can only store 55 IDs in it.

How to increase the number of the IDs stored in browser uri?

It looks like an unsolvable problem, but perhaps there are workarounds to achieve the goal.


UPD From the server side (relational database) it looks like this. There are two database tables with a one-to-many (or possibly many-to-many) relationship. And we need to filter the "primary table" by "foreign keys" (our IDs).

At the client side, we fetch the IDs from the "foreign table". Then the user selects some of them (we manage state of the selected IDs in the browser uri) and makes a request to get the filtered data from the "primary table".

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda