In [[computer science]], '''in-memory processing''' (PIM) is a [[computer architecture]] for [[data processing|processing]] data stored in an [[in-memory database]].<ref>{{Cite journal |last=Ghose |first=S. |date=November 2019 |title=Processing-in-memory: A workload-driven perspective |url=https://www.pdl.cmu.edu/PDL-FTP/associated/19ibmjrd_pim.pdf |journal=IBM Journal of Research and Development |volume=63 |issue=6 |pages=3:1–19|doi=10.1147/JRD.2019.2934048 |s2cid=202025511 }}</ref> In-memory processing improvesmay improve the [[Electric power|power usage]] and [[Computer performance|performance]] of moving data between the processor and the main memory.<ref>{{Cite book|last1=Chi|first1=Ping|last2=Li|first2=Shuangchen|last3=Xu|first3=Cong|last4=Zhang|first4=Tao|last5=Zhao|first5=Jishen|last6=Liu|first6=Yongpan|last7=Wang|first7=Yu|last8=Xie|first8=Yuan|title=2016 ACM/IEEE 43rd Annual International Symposium on Computer Architecture (ISCA) |chapter=PRIME: A Novel Processing-in-Memory Architecture for Neural Network Computation in ReRAM-Based Main Memory |date=June 2016|chapter-url=https://ieeexplore.ieee.org/document/7551380|___location=Seoul, South Korea|publisher=IEEE|pages=27–39|doi=10.1109/ISCA.2016.13|isbn=978-1-4673-8947-1}}</ref> OlderThis contrasts with systems havethat beentransfer baseddata onfrom [[disk storage]] andto [[relationalmemory database]]son usingdemand, [[Structuredan Queryarchitecture Language]],required whichwhen arememory increasinglywas regardedsmall asand inadequateexpensive compared to meetdisk storage and the database size, and when read-intensive applications such as [[business intelligence]] (BI) needswere not major applications. Because stored data is accessed much more quickly when it is placed in [[random-access memory]] (RAM) or [[flash memory]], in-memory processing allows data to be analyzed in [[Real-time computing|real time]], enabling faster reporting and decision-making in business.<ref>{{cite book|last1=Plattner|first1=Hasso|last2=Zeier|first2=Alexander|title=In-Memory Data Management: Technology and Applications|date=2012|publisher=Springer Science & Business Media|isbn=9783642295744|url=https://books.google.com/books?id=HySCgzCApsEC&q=%22in-memory%22|language=en}}</ref><ref>{{cite journal|first=Hao|last=Zhang|author2=Gang Chen|author3=Beng Chin Ooi|author4=Kian-Lee Tan|author5=Meihui Zhang|title=In-Memory Big Data Management and Processing: A Survey|journal=IEEE Transactions on Knowledge and Data Engineering|date=July 2015|volume=27|issue=7|pages=1920–1948|doi=10.1109/TKDE.2015.2427795|doi-access=free}}</ref>