×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / jabber,there are one problem. can you help me. come in please
    有些实时性很强的数据(如股票交易信息),想将之读入一数据结构中(repeat),同时允许其他process访问该结构中的数据。并且要能方便的对该结构中的数据进行查询。试问应如何建立该数据结构?或有其他建议?
    • Give my respect to Jobber. Jobber looks like a fireman of Rolia. When people say: Jobber, please ......
      I always envy those people whom I never catch up with.
      • i don't know what your means? can you explain what you said? thank you
      • You are flattering me. ....Come in, please.
        Actually, many people in this forum are more knowledgable than I am. The fact is that they don't want to explain themselves, or they are not good at doing that.

        By the way, you usurped my nickname. I hope have not done that by mistakes. In another word, I understand it as your sense of humor.
        • about nickname, please!
          your nickname? my nickname is dodo, your is jabber. and the question reall a problem i want to know. and the question about inteview from you is very useful. i also hope you can provide the materials liked it.
          by the way, i very glad to be friend with you

          thank you
        • execuse, i make mistake! you just said to xiaodu. i really no mean what xiaoduo said. this problem just i can't reslove, so i want to get answer from someone.
          • Coin the new words....
            I think you haven't got my point. "jabber" is a true English word. For whatever reason, you put it into "jobber". For English-speaking people, this is a word derived from "job". Since we are talking about job things, it is really amazing to see such a migration. If you did it by mistake, it is an amazing one. If it did it on purpose, it manifests your sense of humor.
    • Your question is too challeging to me. Let me try ... I hope Sailor can help.
      Your data themselves essentially decides what data structure you are going to use. Tree? List? Array? Set? Map? If you need to allow other process to visit the data, do they change the data or just read data? This is related to multithreading issues. In addition, the solution has something to do with what programming langauge you are using. If you use Java, please first determine if there is data sharing between multi threads.

      Our host Sailor has plentiful of experiences in data structures. For instance, all the postings are incorporated in some binary trrees....
      I hope you can describe your problem in some details, if possible, using some heuristic examples. Then, more friends can help you. Your present description sounds a little bit abstract.

      Sorry for my too vague discussions.
      • you said just right, details come in please!
        有股票数据放在远端,是dbf格式的。我以ftp方式定时(每两分钟)将dbf文件传回的主机。将该数据转到oracle数据库里。
        但因为要完成客户对股票交易信息的定制检索,即股票一在价格达到$10时要以短信息通知用户。所以要在股票交易时间内比对两个表--交易行情表与客户定制信息表。现在是在oracl里完成的。但对数据库压力较大。
        想将两个表读如内存中草捉。要求用java实现。
        其中交易行情表要每两分钟重新读入。要很方便的进行检索。请教在java里才用和钟结构(或几种的结合)能较好的完成这个任务。如能给出较细的方法最好。谢谢
        • Wow! Ouch! It is a hard bone! or a hard core?
          I don't think there is an easy solution.

          I know a software called Style Report from Inet Software. It is a Java package aiming at report designing for PDF format. Using this package, a PDF file is sliced into elements and described in XML format.

          I am wondering if your company can buy this package. Then, you can use it to create servlets. In the servlets, you keep two copies of data and compare them... Once some data is no longer needed for comparison, you may save it to Oracle (this can be done in a separate Thread if it takes a long time.) This is only a rough idea. In any case, I suggest cashing some data in the memory. Frequet reading from Oracle should be avoided.

          Hope some other guys can contribute..