[ 
https://issues.apache.org/jira/browse/IGNITE-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251652#comment-15251652
 ] 

Igor Sapego edited comment on IGNITE-2946 at 4/21/16 10:00 AM:
---------------------------------------------------------------

Vladimir,

I've thought about it but then simple code like this would not be working:
{code}
QueryFieldsCursor cursor = cache.Query(someQry);
while (cursor.HasNext())
  QueryFieldsRow row = cursor.GetNext();
{code}

And I think this may cause a lot of hard to debug issues.
Also there could be issues if user tries to access two rows in non sequential  
order. And finally it is going to break backward compatibility as the code 
above is going to work just fine with current implementation.

What do you think?



was (Author: isapego):
Vladimir,

I've thought about it but then simple code like this would not be working:
{code}
QueryFieldsCursor cursor = cache.Query(someQry);
while (cursor.HasNext())
  QueryFieldsRow row = cursor.GetNext();
{code}

And I think this may cause a lot of hard to debug issues.
What do you think?


> CPP: Method GetNext() of the cursor classes should be optimized.
> ----------------------------------------------------------------
>
>                 Key: IGNITE-2946
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2946
>             Project: Ignite
>          Issue Type: Task
>          Components: platforms
>    Affects Versions: 1.5.0.final
>            Reporter: Igor Sapego
>            Assignee: Igor Sapego
>             Fix For: 1.6
>
>
> Current implementation of the GetNext() method of the cursor classes is too 
> slow and should be optimized.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to