FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
HReadSeekFirst vs. HReadSeek: Which is Faster?
HReadSeekFirst vs. HReadSeek: Which is Faster?
Débuté par Droogans, 21 déc. 2011 16:09 - 3 réponses
Connectez-vous…
Droogans
#1
Membre enregistré
25 messages
Posté le 21 décembre 2011 - 16:09
Do both of these statements give up reading the file once they've found a match, or does one require more resources than the other?
Signaler
0
0
Riebens
#2
Membre enregistré
80 messages
Posté le 21 décembre 2011 - 17:39
Hi
These are different functions. Hreadseekfirst finds a specific record with an 'exact match' while Hreadfirst positions to the first record of a lot of records that matched a search item (field)
Hreadseekfirst(customer,customerkey,"mandy")
while
Hreadfirst(customer,Customerkey) positions to the first record from lowest to highest value - including duplicates on the 'customerkey' .
Hope this helps ..
Kind Regards
Signaler
0
0
Droogans
#3
Membre enregistré
25 messages
Posté le 21 décembre 2011 - 18:59
Riebens wrote:
Hreadfirst(customer,Customerkey) positions to the first record from lowest to highest value - including duplicates on the 'customerkey' .
I am not interested in HReadFirst. I am interested in HReadSeek and HReadSeekFirst.
Do both of these functions perform a full table read, or does one "opt-out" once a match has been found?
Thanks.
Signaler
0
0
Zach Allen
#4
Posté le 22 avril 2014 - 15:32
Bump.
This is a good question especially since HReadSeek with the hIdentical flag would perform the same purpose as HReadSeekFirst.
Which is faster? Which uses less memory?
Is a binary search utilized in either of them or are they just using linear searches?
If they are only using linear searching then it may be worth our time to write our own search functions using binary searching.
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte