Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6971827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:53:21+00:00 2026-05-27T16:53:21+00:00

I have a scenario where the user can select check boxes to select multiple

  • 0

I have a scenario where the user can select check boxes to select multiple records which need to be processed on a separate page. I have decided to use Session to store this data. The Session mode will be “In proc”.

I wanted to know which is the most lightweight collection/generic/object to store say 30-40 IDs ( most probably Guids/unique Identifiers ) in the session?.

Any alternate approaches/design patterns are also welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:53:22+00:00Added an answer on May 27, 2026 at 4:53 pm

    If the list of possible records is a closed list you can use an enum as a bit field.
    This way you can store up to 64 boolean values in a single long.

    If, on the other hand you don’t have a closed list of possible values, than an array is the lightest collection there is, as most other collections are simply extensions of an array.

    However, are you absolutely sure you have to use GUIDs? GUIDs are heavy and cumbersome.
    The only use case you must use them is when you have data coming from multiple sources and you have to retain the IDs as they come.
    I’d consider switching to int or long if it’s possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly common scenario where a user can select from a set
I have a scenario where I have to check whether user has already opened
Assume I have a user interface where the user can select days. Is there
I have a scenario where a user will have access to a one-time-url. When
I have a scenario where a user is emailing another user in an HTML
I will like to know: I have a scenario. If a user adds a
I have the following scenario: I have various user's data stored in my database.
Consider following scenario: I have RESTful URL /articles that returns list of articles user
I have a problem regarding getting the path of a user control. The scenario
I have scenario, I have two update panels on the page (both have update

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.