[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Is the PrimaryKey in Datatable indexed for fast queries?

Posted on 2006-10-30
1
Medium Priority
?
442 Views
Last Modified: 2008-03-03
I wanted to know and be shown that the primarykey in the datatable class is indexed for fast queries.
I have alot of queries to do and dont wanna use a datatable unless it has some b-tree or hashtable or something behind the primarykey.  I mean if it just does a linear search then forget it and i will go use hashtable class
0
Comment
Question by:joshuadavidlee
1 Comment
 
LVL 35

Accepted Solution

by:
Raynard7 earned 2000 total points
ID: 17838166
I'd forget it and either pull queries from a database - uor use hashtables, the primary key is basically for referential integrity
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question