Twitter4J

change the type of userid from int to long

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Core
  • Labels:
    None

Description

http://groups.google.com/group/twitter4j/browse_thread/thread/7e65a43d3344cc72
http://groups.google.com/group/twitter4j/browse_thread/thread/26512f22e8320177

Aug 25, 2009: 68689490
Dec 20, 2009: 98051000

32bit signed integer is roomy enough to manage 2147483647(Integer.MAX_VALUE) accounts.

It shouldn't increase in an exponential fashion in the long term.
Let's presume that the max id is increasing linearly, and we can assess that 250517 accounts are registered daily from Aug 25 to Dec 20.
They have 2049483647 ids left.
It'll take about 22 years to reach the maximum.

Activity

Hide
Yusuke Yamamoto added a comment -
Following method name need to be renamed to *ByUserId / *ByCursor or something like that.
 IDs getFollowersIDs(int userId)
 IDs getFollowersIDs(long cursor)

 IDs getFriendsIDs(int userId)
 IDs getFriendsIDs(long cursor)

 PagableResponseList<User> getFollowersStatuses(int userId)
 PagableResponseList<User> getFollowersStatuses(long cursor)

 PagableResponseList<User> getFriendsStatuses(int userId)
 PagableResponseList<User> getFriendsStatuses(long cursor)
Show
Yusuke Yamamoto added a comment - Following method name need to be renamed to *ByUserId / *ByCursor or something like that.  IDs getFollowersIDs(int userId)  IDs getFollowersIDs(long cursor)  IDs getFriendsIDs(int userId)  IDs getFriendsIDs(long cursor)  PagableResponseList<User> getFollowersStatuses(int userId)  PagableResponseList<User> getFollowersStatuses(long cursor)  PagableResponseList<User> getFriendsStatuses(int userId)  PagableResponseList<User> getFriendsStatuses(long cursor)
Hide
Yusuke Yamamoto added a comment -
int type should be okay for now.
Show
Yusuke Yamamoto added a comment - int type should be okay for now.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: